docs(badge): add icon indicator text for screen-reader in example (#15115)

This commit is contained in:
Suresh918
2019-02-07 23:16:52 +05:30
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>