-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
fix(material-experimental/button): high contrast outline for solitary icon-buttons #22987
Conversation
@@ -26,4 +27,8 @@ | |||
opacity: 1; | |||
} | |||
} | |||
|
|||
@include a11y.high-contrast(active, off) { |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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)
fa3b2c5
to
a06de2c
Compare
66b17b7
to
3481f7f
Compare
3481f7f
to
7bac83a
Compare
@crisbeto PTAL at the updated changes |
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.
LGTM
…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