Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions src/components/Button/Button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Copy link
Member

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.

Copy link
Contributor Author

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.


&:focus {
background-color: transparent;
}

.ms-Icon {
font-size: 16px;
padding: 8px;
}
Copy link
Member

Choose a reason for hiding this comment

The 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 {
Copy link
Member

Choose a reason for hiding this comment

The 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
Expand Down