Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
feat(menu): Remove deprecated aria-label input attributes.
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Old attributes do not conform with accessibility standards.
  • Loading branch information
rowa-audil authored and ffriedl89 committed May 12, 2020
1 parent 5859b19 commit 0bf77b6
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions libs/barista-components/menu/src/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,9 @@ export class DtMenuGroup {
host: {
class: 'dt-menu',
role: 'menubar',
'[attr.aria-label]': 'ariaLabel',
},
preserveWhitespaces: false,
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.Emulated,
})
export class DtMenu {
/**
* Accessibility label describing the menu.
* @deprecated use the native aria-label for strings and if you need a binding use [attr.aria-label]
* @breaking-change to be removed in 6.0.0
*/
@Input('aria-label') ariaLabel: string;
}
export class DtMenu {}

0 comments on commit 0bf77b6

Please sign in to comment.