8000 fix #7579 Pagination aria label by Sulaymon333 · Pull Request #7590 · grommet/grommet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix #7579 Pagination aria label #7590

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 22, 2025
Merged

Conversation

Sulaymon333
Copy link
Collaborator
@Sulaymon333 Sulaymon333 commented Apr 16, 2025

What does this PR do?

Where should the reviewer start?

What testing has been done on this PR?

How should this be manually tested?

Do Jest tests follow these best practices?

  • screen is used for querying.
  • The correct query is used. (Refer to this list of queries)
  • asFragment() is used for snapshot testing.

Any background context you want to provide?

What are the relevant issues?

Screenshots (if appropriate)

Do the grommet docs need to be updated?

Should this PR be mentioned in the release notes?

Is this change backwards compatible or is it a breaking change?

return (
<Box direction="row" align="center" gap="xsmall" {...rest}>
<Text>{formatMessage({ id: 'pagination.stepLabel', messages })}</Text>
<Select
options={options}
value={step}
a11yTitle="Items per Page"
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we want a aria-label here instead then also we should include it in default.json message and allow for internationalization so using our

format({
  id: 'pagination.itemsPerPage',
  messages,
  },
})

then add that message in the default.json file

Copy link
Collaborator Author
@Sulaymon333 Sulaymon333 Apr 16, 2025

Choose a reason for hiding this comment

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

@britt6612 I noticed stepLabel is exactly the same value of Item per page. can we just we just use that instead of creating new label. I have pushed the new changes with this.

image

@Sulaymon333 Sulaymon333 requested a review from britt6612 April 17, 2025 09:33
return (
<Box direction="row" align="center" gap="xsmall" {...rest}>
<Text>{formatMessage({ id: 'pagination.stepLabel', messages })}</Text>
<Select
options={options}
value={step}
a11yTitle={formatMessage({ id: 'pagination.stepLabel', messages })}
Copy link
Collaborator

Choose a reason for hiding this comment

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

one last comment can we change this to be
aria-label={formatMessage({ id: 'pagination.stepLabel', messages })}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

Sulaymon333 added a commit that referenced this pull request Apr 18, 2025
Sulaymon333 added a commit that referenced this pull request Apr 18, 2025
@Sulaymon333 Sulaymon333 changed the title fix #7579 issue with updated tests/snapshot fix #7579 Pagination aria label Apr 18, 2025
@britt6612 britt6612 requested review from taysea and MikeKingdom April 18, 2025 04:55
Copy link
Collaborator
@jcfilben jcfilben left a comment

Choose a reason for hiding this comment

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

Looks good!

@jcfilben jcfilben merged commit 088a5d0 into master Apr 22, 2025
16 checks passed
@jcfilben jcfilben deleted the #7579-pagination-aria-label branch April 22, 2025 22:07
@jcfilben jcfilben mentioned this pull request Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pagination Aria Labels
4 participants
0