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

fix(carousel): Role=group not valid inside a list #431

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

larowlan
Copy link
Contributor

We're using the design system in a storybook setup.
With this setup we're using storybook's test runner to test a11y of our components using axe/playwright.
It is failing for the carousel component with an invalid list structure/role attribute. role="group" is not valid inside a list.

@laurenhitchon
Copy link
Contributor

laurenhitchon commented Jul 16, 2024

Thank you @larowlan for your contribution!

I appreciate the effort you've put into ensuring our components adhere to accessibility standards. Removing the role="group" attribute from the carousel component makes sense given that it's not valid inside a list structure. This change will help improve the accessibility of our component as per the axe/playwright tests.

We'll verify that this removal doesn't affect any other functionality or introduce new accessibility issues and then merge this PR early next week if there are no issues.

@laurenhitchon laurenhitchon merged commit d2ac1ab into digitalnsw:master Jul 16, 2024
4 of 5 checks passed
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.

2 participants