mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs(badge): add icon indicator text for screen-reader in example (#15115)
This commit is contained in:
committed by
Jeremy Elbourn
parent
6517e1a834
commit
ed11370a21
@@ -13,5 +13,9 @@
|
||||
<p>
|
||||
Icon with a badge
|
||||
<mat-icon matBadge="15" matBadgeColor="warn">home</mat-icon>
|
||||
<!-- Include text description of the icon's meaning for screen-readers -->
|
||||
<span class="cdk-visually-hidden">
|
||||
Example with a home icon with overlaid badge showing the number 15
|
||||
</span>
|
||||
</p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user