Skip to content

Commit

Permalink
fix(tooltip): add & remove aria attributes #1710
Browse files Browse the repository at this point in the history
  • Loading branch information
Tacho committed Sep 17, 2018
1 parent 3a557da commit aa7180e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export class IgxToggleDirective implements IToggleView, OnInit, OnDestroy {
* @hidden
*/
@HostBinding('class.igx-toggle--hidden')
@HostBinding('attr.aria-hidden')
public get hiddenClass() {
return this.collapsed;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,16 @@ export class IgxTooltipDirective extends IgxToggleDirective {

@Input() public labelId = `${this.id}-label`;

@HostBinding('attr.aria-labelledby')
@Input('aria-labelledby')
public ariaLabelledBy = this.labelId;
// @HostBinding('attr.aria-live')
// public get ariaLive() {
// return !this.collapsed? 'assertive': 'off';
// }

@HostBinding('attr.role')
public get role() {
return 'tooltip';
}

@HostBinding('attr.aria-label')
@Input('aria-label')
public ariaLabel: string | null = null;
}

@NgModule({
Expand Down

0 comments on commit aa7180e

Please sign in to comment.