Skip to content

Commit

Permalink
Merge pull request #1627 from hashicorp/melsumner/update-pagination-a…
Browse files Browse the repository at this point in the history
…ria-label

Update aria-label for pagination nav element
  • Loading branch information
didoo authored Sep 19, 2023
2 parents a0d4c9f + 53c9f13 commit a6573ef
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/perfect-pens-cry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hashicorp/design-system-components": patch
---

Bugfix aria-label on pagination component
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ export default class HdsPaginationCompactIndexComponent extends Component {
/**
* @param ariaLabel
* @type {string}
* @default 'Pagination navigation'
* @default 'Pagination'
*/
get ariaLabel() {
return this.args.ariaLabel ?? 'Pagination navigation';
return this.args.ariaLabel ?? 'Pagination';
}

get routeQueryParams() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ export default class HdsPaginationNumberedIndexComponent extends Component {
/**
* @param ariaLabel
* @type {string}
* @default 'Pagination navigation'
* @default 'Pagination'
*/
get ariaLabel() {
return this.args.ariaLabel ?? 'Pagination navigation';
return this.args.ariaLabel ?? 'Pagination';
}

// This very specific `get/set` pattern is used to handle the two different use cases of the component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ These Pagination sub-elements may be used directly if you need to cover a very s
### Pagination::Numbered

<Doc::ComponentApi as |C|>
<C.Property @name="ariaLabel" @type="string" @default="Pagination navigation">
<C.Property @name="ariaLabel" @type="string" @default="Pagination">
Accepts a localized string.
</C.Property>
<C.Property @name="totalItems" @required="true" @type="number">
Expand Down Expand Up @@ -66,7 +66,7 @@ This component supports use of [`...attributes`](https://guides.emberjs.com/rele
### Pagination::Compact

<Doc::ComponentApi as |C|>
<C.Property @name="ariaLabel" @type="string" @default="Pagination navigation">
<C.Property @name="ariaLabel" @type="string" @default="Pagination">
Accepts a localized string.
</C.Property>
<C.Property @name="route/model/models/replace">
Expand Down

2 comments on commit a6573ef

@vercel
Copy link

@vercel vercel bot commented on a6573ef Sep 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

hds-showcase – ./packages/components

hds-showcase.vercel.app
hds-showcase-git-main-hashicorp.vercel.app
hds-showcase-hashicorp.vercel.app
hds-components-hashicorp.vercel.app

@vercel
Copy link

@vercel vercel bot commented on a6573ef Sep 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.