Skip to content

Commit 3caea2b

Browse files
committed
refactor(icon): remove ariaHidden member
Closes #15159 Removing the explicit ariaHidden binding set to true on component instantiation. Users should use [attr.aria-hidden]="true" to control the aria-hidden attribute of the Icon component.
1 parent c8e2490 commit 3caea2b

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

projects/igniteui-angular/src/lib/icon/icon.component.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,6 @@ export class IgxIconComponent implements OnInit, OnChanges, OnDestroy {
6565
this._iconClasses.clear();
6666
}
6767

68-
/**
69-
* This allows you to disable the `aria-hidden` attribute. By default it's applied.
70-
*
71-
* @example
72-
* ```typescript
73-
* @ViewChild("MyIcon") public icon: IgxIconComponent;
74-
* constructor(private cdRef:ChangeDetectorRef) {}
75-
* ngAfterViewInit() {
76-
* this.icon.ariaHidden = false;
77-
* this.cdRef.detectChanges();
78-
* }
79-
* ```
80-
*/
81-
@HostBinding("attr.aria-hidden")
82-
public ariaHidden = true;
83-
8468
/**
8569
* An accessor that returns inactive property.
8670
*

0 commit comments

Comments
 (0)