fix(material-experimental/button): high contrast outline for solitary icon-buttons - #22987
Conversation
| } | ||
| } | ||
|
|
||
| @include a11y.high-contrast(active, off) { |
There was a problem hiding this comment.
The non-icon button also increases the outline to 3px on focus. Should we have the same here? It might be a good idea to pull these styles into _button-base.scss so they can be reused.
There was a problem hiding this comment.
I updated the PR to move the HC styles into their own file that's imported by both button and icon-button (but not fab)
66b17b7 to
3481f7f
Compare
3481f7f to
7bac83a
Compare
|
@crisbeto PTAL at the updated changes |
…tary icon-buttons The high-contrast style for all buttons was previously defined in `button.scss`, but icon-buttons load `icon-button.scss`. This means that the high contrast style for icon buttons was only loaded when another type of button was on the page. This change moves the high-contrast styles to their own file that's referenced from buttons and icon-buttons (but not FABs).
7bac83a to
fb2f0da
Compare
|
Whoops, I accidentally pushed a stale branch somehow. Updated with the real changes |
|
@jelbourn Did you want to add the |
|
Added it back |
…tary (#22987) icon-buttons The high-contrast style for all buttons was previously defined in `button.scss`, but icon-buttons load `icon-button.scss`. This means that the high contrast style for icon buttons was only loaded when another type of button was on the page. This change moves the high-contrast styles to their own file that's referenced from buttons and icon-buttons (but not FABs). (cherry picked from commit 30e9205)
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The high-contrast style for all buttons was previously defined in
button.scss, but icon-buttons loadicon-button.scss. This means thatthe high contrast style for icon buttons was only loaded when another
type of button was on the page. This change moved the icon-button high-contrast
style to
icon-button.scss.cc @zarend @amysorto FYI