Skip to content

Commit

Permalink
fix(docs-infra): amend notification close button aria-label (#45579) (#…
Browse files Browse the repository at this point in the history
…45654)

move the aria-label used inside the close-button to the button itself
(since otherwise the button's aria-label overrides the childs)

PR Close #45579

PR Close #45654
  • Loading branch information
dario-piotrowicz authored and dylhunn committed Apr 18, 2022
1 parent 1564771 commit 26fe764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aio/src/app/layout/notification/notification.component.html
Expand Up @@ -2,6 +2,6 @@
<ng-content></ng-content>
</span>

<button mat-icon-button class="close-button" aria-label="Close" (click)="dismiss()">
<mat-icon svgIcon="close" aria-label="Dismiss notification"></mat-icon>
<button mat-icon-button class="close-button" aria-label="Dismiss notification" (click)="dismiss()">
<mat-icon svgIcon="close"></mat-icon>
</button>

0 comments on commit 26fe764

Please sign in to comment.