diff --git a/src/material/sort/sort-header.html b/src/material/sort/sort-header.html index cc575585a601..db76622dd754 100644 --- a/src/material/sort/sort-header.html +++ b/src/material/sort/sort-header.html @@ -12,7 +12,7 @@ [class.mat-sort-header-sorted]="_isSorted()" [class.mat-sort-header-position-before]="arrowPosition == 'before'" [attr.tabindex]="_isDisabled() ? null : 0" - role="button"> + [attr.role]="_isDisabled() ? null : 'button'">