Skip to content

Commit ed11370

Browse files
Suresh918jelbourn
authored andcommitted
docs(badge): add icon indicator text for screen-reader in example (#15115)
1 parent 6517e1a commit ed11370

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/material-examples/badge-overview/badge-overview-example.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,9 @@
1313
<p>
1414
Icon with a badge
1515
<mat-icon matBadge="15" matBadgeColor="warn">home</mat-icon>
16+
<!-- Include text description of the icon's meaning for screen-readers -->
17+
<span class="cdk-visually-hidden">
18+
Example with a home icon with overlaid badge showing the number 15
19+
</span>
1620
</p>
1721

0 commit comments

Comments
 (0)