Skip to content
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

[material-ui][Pagination] Use correct aria-current value #44753

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

jacklaurencegaray
Copy link
Contributor

The current pagination mechanism in the docs reads the current page in the screen reader as "current item". By using aria-current="page" instead of aria-current="true", the screen reader reads it more clearly as "current page".

This is correct property described in the pagination w3c spec.

@jacklaurencegaray jacklaurencegaray changed the title use correct aria-current attribute for pagination Use correct aria-current attribute for pagination Dec 12, 2024
@mj12albert mj12albert added accessibility a11y package: material-ui Specific to @mui/material component: pagination This is the name of the generic UI component, not the React module! labels Dec 13, 2024
@mj12albert mj12albert changed the title Use correct aria-current attribute for pagination [Pagination] Use correct aria-current value Dec 13, 2024
@mj12albert mj12albert self-assigned this Dec 13, 2024
@mj12albert
Copy link
Member

@jacklaurencegaray Thanks for working on this ~ you'd need to update the tests here to pass the CI checks!

@jacklaurencegaray
Copy link
Contributor Author

@jacklaurencegaray Thanks for working on this ~ you'd need to update the tests here to pass the CI checks!

Done.

@mui-bot
Copy link

mui-bot commented Dec 15, 2024

Netlify deploy preview

https://deploy-preview-44753--material-ui.netlify.app/

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against 6e42d61

Copy link
Member

@mj12albert mj12albert 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 👍

@mj12albert
Copy link
Member

Just pinging @aarongarciah to see if you would see this as a breaking change, it changes the SR announcement

@aarongarciah aarongarciah changed the title [Pagination] Use correct aria-current value [material-ui][Pagination] Use correct aria-current value Dec 16, 2024
Copy link
Member

@aarongarciah aarongarciah left a comment

Choose a reason for hiding this comment

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

@mj12albert looks good!

@mj12albert mj12albert merged commit bc715f9 into mui:master Dec 16, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility a11y component: pagination This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants