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

Commit

Permalink
fix(timestamp): 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 0f281fc commit 1f9cdba
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions libs/barista-components/chart/src/timestamp/timestamp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,20 +72,6 @@ export class TimestampStateChangedEvent {
},
})
export class DtChartTimestamp implements AfterViewInit, OnDestroy {
/**
* Aria label for the close button in the overlay.
* @deprecated `aria-label-close` does not conform with accessibility standards.
* Please use `ariaLabelClose` input instead.
* @breaking-change Will be removed in version 7.0.0
*/
@Input('aria-label-close')
get depAriaLabelClose(): string {
return this._ariaLabelClose;
}
set depAriaLabelClose(value: string) {
this._ariaLabelClose = value;
}

/** Aria label for the close button in the overlay */
@Input()
get ariaLabelClose(): string {
Expand All @@ -97,20 +83,6 @@ export class DtChartTimestamp implements AfterViewInit, OnDestroy {
/** @internal Aria label value for the close button of the overlay */
_ariaLabelClose = ARIA_DEFAULT_CLOSE_LABEL;

/**
* Aria label for the selected moment.
* @deprecated `aria-label-selected` does not conform with accessibility standards.
* Please use `ariaLabelSelected` input instead.
* @breaking-change Will be removed in version 7.0.0
*/
@Input('aria-label-selected')
get depAriaLabelSelected(): string {
return this._ariaLabelSelected;
}
set depAriaLabelSelected(value: string) {
this._ariaLabelSelected = value;
}

/** Aria label for the selected moment. */
@Input()
get ariaLabelSelected(): string {
Expand Down

0 comments on commit 1f9cdba

Please sign in to comment.