Skip to content

fix(dialog): Remove the incorrect descendant element#3125

Open
Thejashwini123 wants to merge 2 commits intocarbon-design-system:masterfrom
Thejashwini123:fix-accessibility-violation-button
Open

fix(dialog): Remove the incorrect descendant element#3125
Thejashwini123 wants to merge 2 commits intocarbon-design-system:masterfrom
Thejashwini123:fix-accessibility-violation-button

Conversation

@Thejashwini123
Copy link
Copy Markdown

@Thejashwini123 Thejashwini123 commented Apr 2, 2025

closes : #3126

Violation : The element with role "button" contains descendants with roles "dialog" which are ignored by browsers

Before
accessibility-violation

After
after

Issue : The accessibility violation occurs because aria-owns moves the dialog inside the button in the accessibility tree, which is not valid for a button element.

Carbon version : 5.57.1

@Thejashwini123 Thejashwini123 requested a review from a team as a code owner April 2, 2025 08:25
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2025

DCO Assistant Lite bot All contributors have signed the DCO.

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 2, 2025

Deploy Preview for carbon-components-angular ready!

Name Link
🔨 Latest commit 73ddbd7
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-angular/deploys/6821a82e03e57900082eb89b
😎 Deploy Preview https://deploy-preview-3125--carbon-components-angular.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Thejashwini123
Copy link
Copy Markdown
Author

I have read the DCO document and I hereby sign the DCO.

@Thejashwini123
Copy link
Copy Markdown
Author

recheck

@Thejashwini123 Thejashwini123 force-pushed the fix-accessibility-violation-button branch from decee9c to 42ed562 Compare May 12, 2025 07:48
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.

Accessability Violation : The element with role "button" contains descendants with roles "menu" which are ignored by browsers

1 participant