Skip to content

Commit 39b5577

Browse files
authored
docs(icon): fix the bidi section interupting the a11y section (#13331)
1 parent 74fdedb commit 39b5577

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/lib/icon/icon.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,6 @@ In thinking about accessibility, it is useful to place icon use into one of thre
9595
3. **Indicator**: the icon is not interactive, but it conveys some information, such as a status. This
9696
includes using the icon in place of text inside of a larger message.
9797

98-
### Bidirectionality
99-
100-
By default icons in an RTL layout will look exactly the same as in LTR, however certain icons have
101-
to be [mirrored for RTL users](https://material.io/guidelines/usability/bidirectionality.html). If
102-
you want to mirror an icon only in an RTL layout, you can use the `mat-icon-rtl-mirror` CSS class.
103-
104-
```html
105-
<mat-icon class="mat-icon-rtl-mirror" svgIcon="thumb-up"></mat-icon>
106-
```
107-
10898
#### Decorative icons
10999
When the icon is purely cosmetic and conveys no real semantic meaning, the `<mat-icon>` element
110100
is marked with `aria-hidden="true"`.
@@ -124,3 +114,13 @@ screen-readers. The most straightforward way to do this is to
124114
information as the icon.
125115
2. Add the `cdk-visually-hidden` class to the `<span>`. This will make the message invisible
126116
on-screen but still available to screen-reader users.
117+
118+
### Bidirectionality
119+
120+
By default icons in an RTL layout will look exactly the same as in LTR, however certain icons have
121+
to be [mirrored for RTL users](https://material.io/guidelines/usability/bidirectionality.html). If
122+
you want to mirror an icon only in an RTL layout, you can use the `mat-icon-rtl-mirror` CSS class.
123+
124+
```html
125+
<mat-icon class="mat-icon-rtl-mirror" svgIcon="thumb-up"></mat-icon>
126+
```

0 commit comments

Comments
 (0)