Skip to content

Conversation

@amreladawy
Copy link
Contributor

@amreladawy amreladawy commented Sep 16, 2023

Run FastPass on Paginating control.
It will report an error that aria-selected is a wrong attribute for page number button. The correct attribute is aria-checked. Also, added role radio to reflect the correct role of this pagination.
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-checked

Previous Behavior

The pagination buttons have the wrong aria attribute and fail a11y test tool by Microsoft.

New Behavior

The buttons have the correct aria-checked and correct role

Related Issue(s)

  • Fixes #

aria-selected is a wrong attribute for button. The correct attribute is aria-checked. 
Also, added role radio to reflect the correct role of this pagination.
@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 16, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 76c0926:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@amreladawy amreladawy changed the title Fix aria attribute for page number and add correct role A11y: Fix aria attribute for page number and add correct role Sep 16, 2023
@amreladawy
Copy link
Contributor Author

Updated the parent control and added role="radiogroup"

@behowell behowell enabled auto-merge (squash) September 29, 2023 22:09
auto-merge was automatically disabled September 29, 2023 22:15

Head branch was pushed to by a user without write access

@amreladawy
Copy link
Contributor Author

Closed and raised another PR #29349

@amreladawy amreladawy closed this Sep 29, 2023
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.

3 participants