-
Notifications
You must be signed in to change notification settings - Fork 2.9k
#196739: updated icon button styles per design specs #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d5288fd
#196743: removed beakWidth and class settings. Use defaults
4031190
TaskID 196744: updated default gapSpace to be 16
3b2bbcf
#196739: updated icon button styles per design specs
3907638
Merge pull request #11 from OfficeDev/dubunin/callout-issues
dubunin a142df5
Fixing list group header css
ff794c7
Bringing over the latest updates from separat VSO repo.
dzearing 869361c
Replacing tabs with spaces.
dzearing e7231a9
Adding example and bestpractices.
dzearing 5dd916c
Merge pull request #18 from OfficeDev/latest-bits
dzearing 1212598
Removing examples from npm publishing. (#19)
dzearing 60ffd0d
196739: code cleanup and contrast styles
983b923
Merge branch 'master' of https://github.com/OfficeDev/office-ui-fabri…
aditima d64d0a3
Merge pull request #17 from aditima/master
aditima 23c5bea
#196739: updated icon button styles per design specs
c017b61
196739: code cleanup and contrast styles
eb8711e
Merge branch 'dubunin/icon-button-styling' of https://github.com/Offi…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,25 +2,36 @@ | |
| @import "~office-ui-fabric/src/components/Button/Button"; | ||
|
|
||
| .ms-Button--icon { | ||
| @include focus-border(0px); | ||
| background-color: transparent; | ||
| color: $ms-color-neutralSecondary; | ||
| padding: 0; | ||
| min-width: auto; | ||
| height: auto; | ||
| border: 0; | ||
|
|
||
| &:hover { | ||
| &:hover, | ||
| &:active { | ||
| background-color: transparent; | ||
| border-color: transparent; | ||
| outline-color: transparent; | ||
| color: $ms-color-neutralPrimary; | ||
| } | ||
|
|
||
| &:focus { | ||
| background-color: transparent; | ||
| } | ||
|
|
||
| .ms-Icon { | ||
| font-size: 16px; | ||
| padding: 8px; | ||
| } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: newline before block declarations |
||
| .ms-Button-icon { | ||
| display: inline; | ||
| } | ||
| &.is-disabled, &:disabled { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: newline before block declarations |
||
| color: $ms-color-neutralTertiaryAlt; | ||
| background-color: transparent; | ||
| } | ||
| } | ||
|
|
||
| // this is added because we have an anchor styled like a button and there is no | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please verify this still looks like a button or how you'd expect in high contrast.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double checked with design to make sure this is the desired look. Also, worked with design to figure out high contrast colors for icon buttons. Decided best to use colors that match up with link colors in high contrast. Per design no hover color change necessary in high contrast. Cursor changing to pointer is change enough.