File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -164,20 +164,6 @@ export class MatBadge implements OnInit, OnDestroy {
164
164
if ( nativeElement . nodeType !== nativeElement . ELEMENT_NODE ) {
165
165
throw Error ( 'matBadge must be attached to an element node.' ) ;
166
166
}
167
-
168
- // Heads-up for developers to avoid putting matBadge on <mat-icon>
169
- // as it is aria-hidden by default docs mention this at:
170
- // https://material.angular.io/components/badge/overview#accessibility
171
- if (
172
- nativeElement . tagName . toLowerCase ( ) === 'mat-icon' &&
173
- nativeElement . getAttribute ( 'aria-hidden' ) === 'true'
174
- ) {
175
- console . warn (
176
- `Detected a matBadge on an "aria-hidden" "<mat-icon>". ` +
177
- `Consider setting aria-hidden="false" in order to surface the information assistive technology.` +
178
- `\n${ nativeElement . outerHTML } ` ,
179
- ) ;
180
- }
181
167
}
182
168
}
183
169
You can’t perform that action at this time.
0 commit comments