You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updates previous changes to icon.scss to remove unnecessary
specificity targeting and just moves classes to be generalized
under .mat-icon. Adds min-height and min-width to .mdc-button
so that when buttons (with icons especially) do not allow its
content to overflow outside of the button and maintaining its
accessibility by not allowing overlapping of text/content.
Fixes b/250063405
Copy file name to clipboardExpand all lines: src/material/icon/icon.md
-9
Original file line number
Diff line number
Diff line change
@@ -117,15 +117,6 @@ information as the icon.
117
117
2. Add the `cdk-visually-hidden` class to the `<span>`. This will make the message invisible
118
118
on-screen but still available to screen-reader users.
119
119
120
-
##### Interactive / Indicator icons within a button
121
-
**Note that when the presence of an icon in a button is supposed to communicate some
122
-
information to the user or by being inlined into a block of text, as mentioned by
123
-
Interactive icons above, an appropriate element should "own" the icon with interaction:
124
-
* The `<mat-icon>` element should be a child of a `<button>` or `<a>` element.
125
-
* The parent `<button>` or `<a>` should either have a meaningful label provided either through
126
-
direct text content, `aria-label`, or `aria-labelledby`.
127
-
* On mobile/small screens for these icons inlined with text in a button, the icon visibility is set to `hidden` to avoid overlapping into other elements and improve accessibility.
128
-
129
120
### Bidirectionality
130
121
131
122
By default icons in an RTL layout will look exactly the same as in LTR, however certain icons have
0 commit comments