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

Commit

Permalink
fix(pagination): Remove deprecated aria label input attributes.
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Use non-deprecated aria label input attributes.
  • Loading branch information
rowa-audil authored and ffriedl89 committed May 12, 2020
1 parent 0bf77b6 commit 4d84a0a
Showing 1 changed file with 0 additions and 65 deletions.
65 changes: 0 additions & 65 deletions libs/barista-components/pagination/src/pagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,6 @@ export class DtPagination implements OnInit {
}
private _currentPage = 1;

/**
* Aria label for the previous page button. Defaults to "Previous page"
* @deprecated `aria-label-previous` does not conform with accessibility standards.
* Please use `ariaLabelPrevious` input instead.
* @breaking-change Will be removed in version 7.0.0
*/
@Input('aria-label-previous')
get ariaPreviousLabel(): string {
return this._ariaLabelPrevious;
}
set ariaPreviousLabel(value: string) {
this._ariaLabelPrevious = value;
}
/** Aria label for the previous page button. Defaults to "Previous page" */
@Input()
get ariaLabelPrevious(): string {
Expand All @@ -127,19 +114,6 @@ export class DtPagination implements OnInit {
/** @internal Aria label for the previous page button. Defaults to "Previous page" */
_ariaLabelPrevious = ARIA_DEFAULT_PREVIOUS_LABEL;

/**
* Aria label for the next page button. Defaults to "Next page"
* @deprecated `aria-label-next` does not conform with accessibility standards.
* Please use `ariaLabelNext` input instead.
* @breaking-change Will be removed in version 7.0.0
*/
@Input('aria-label-next')
get ariaNextLabel(): string {
return this._ariaLabelNext;
}
set ariaNextLabel(value: string) {
this._ariaLabelNext = value;
}
/** Aria label for the next page button. Defaults to "Next page" */
@Input()
get ariaLabelNext(): string {
Expand All @@ -154,19 +128,6 @@ export class DtPagination implements OnInit {
/** Aria label for the pagination. Defaults to "Pagination" */
@Input('aria-label') ariaLabel = ARIA_DEFAULT_LABEL;

/**
* Aria label for the ellipsis character. Defaults to "The next pages are ellipses"
* @deprecated `aria-label-ellipses` does not conform with accessibility standards.
* Please use `ariaLabelEllipsis` input instead.
* @breaking-change Will be removed in version 7.0.0
*/
@Input('aria-label-ellipses')
get ariaLabelEllipses(): string {
return this._ariaLabelEllipsis;
}
set ariaLabelEllipses(value: string) {
this._ariaLabelEllipsis = value;
}
/** Aria label for the ellipsis character. Defaults to "The next pages are ellipsis" */
@Input()
get ariaLabelEllipsis(): string {
Expand All @@ -178,19 +139,6 @@ export class DtPagination implements OnInit {
/** @internal Aria label for the ellipsis character. Defaults to "The next pages are ellipsis" */
_ariaLabelEllipsis = ARIA_DEFAULT_ELLIPSES;

/**
* Aria label for a page button (Page 1,2,3...). Defaults to "Page"
* @deprecated `aria-label-page` does not conform with accessibility standards.
* Please use `ariaLabelPage` input instead.
* @breaking-change Will be removed in version 7.0.0
*/
@Input('aria-label-page')
get ariaPageLabel(): string {
return this._ariaLabelPage;
}
set ariaPageLabel(value: string) {
this._ariaLabelPage = value;
}
/** Aria label for a page button (Page 1,2,3...). Defaults to "Page" */
@Input()
get ariaLabelPage(): string {
Expand All @@ -202,19 +150,6 @@ export class DtPagination implements OnInit {
/** @internal Aria label for a page button (Page 1,2,3...). Defaults to "Page" */
_ariaLabelPage = ARIA_DEFAULT_PAGE_LABEL;

/**
* Aria label for the current page button. Defaults to "You are currently on page"
* @deprecated `aria-label-current` does not conform with accessibility standards.
* Please use `ariaLabelCurrent` input instead.
* @breaking-change Will be removed in version 7.0.0
*/
@Input('aria-label-current')
get ariaCurrentLabel(): string {
return this._ariaLabelCurrent;
}
set ariaCurrentLabel(value: string) {
this._ariaLabelCurrent = value;
}
/** Aria label for the current page button. Defaults to "You are currently on page" */
@Input()
get ariaLabelCurrent(): string {
Expand Down

0 comments on commit 4d84a0a

Please sign in to comment.