diff --git a/src/demo-app/icon/icon-demo.html b/src/demo-app/icon/icon-demo.html index 13e9c875af2..aff0f54360d 100644 --- a/src/demo-app/icon/icon-demo.html +++ b/src/demo-app/icon/icon-demo.html @@ -54,7 +54,11 @@

+ Inline styling allows icons to appear as the same size as text around them.

- Inline styling favorite icons appear as - the same directions_carsize as text around them.

+ My dogpets is my + favoritefavorite, + he loves to go on walks + directions_walk +

diff --git a/src/lib/icon/icon.md b/src/lib/icon/icon.md index 3936cdeaa6a..aa3f7b47b73 100644 --- a/src/lib/icon/icon.md +++ b/src/lib/icon/icon.md @@ -92,7 +92,8 @@ element. In thinking about accessibility, it is useful to place icon use into one of three categories: 1. **Decorative**: the icon conveys no real semantic meaning and is purely cosmetic. 2. **Interactive**: a user will click or otherwise interact with the icon to perform some action. -3. **Indicator**: the icon is not interactive, but it conveys some information, such as a status. +3. **Indicator**: the icon is not interactive, but it conveys some information, such as a status. This +includes using the icon in place of text inside of a larger message. ### Bidirectionality @@ -105,22 +106,21 @@ you want to mirror an icon only in an RTL layout, you can use the `mat-icon-rtl- ``` #### Decorative icons -When the icon is puely cosmetic and conveys no real semantic meaning, the `` element -should be marked with `aria-hidden="true"`. +When the icon is purely cosmetic and conveys no real semantic meaning, the `` element +is marked with `aria-hidden="true"`. #### Interactive icons Icons alone are not interactive elements for screen-reader users; when the user would interact with some icon on the page, a more appropriate element should "own" the interaction: * The `` element should be a child of a `