Skip to content

Conversation

@2nikhiltom
Copy link
Contributor

@2nikhiltom 2nikhiltom commented Nov 24, 2025

Closes #20496

Apply aria-describedby and aria-labelledby to the input element in RadioTile

Changelog

Updated RadioTile so aria-describedby and aria-labelledby are applied to the underlying instead of the to improving screen reader support

Changed

{...(ariaDescribedBy && { 'aria-describedby': ariaDescribedBy })}
{...(ariaLabelledBy && { 'aria-labelledby': ariaLabelledBy })}

New
Added test cases against the fix

Testing / Reviewing

Render RadioTile with aria-describedby and/or aria-labelledby.
Confirm accessibility attributes are applied only to the element and not the
Check new test cases are passing

PR Checklist

As the author of this PR, before marking ready for review, confirm you:

  • Reviewed every line of the diff
    - [ ] Updated documentation and storybook examples
  • Wrote passing tests that cover this change
  • Addressed any impact on accessibility (a11y)
  • Tested for cross-browser consistency
  • Validated that this code is ready for review and status checks should pass

More details can be found in the pull request guide

@2nikhiltom 2nikhiltom requested a review from a team as a code owner November 24, 2025 11:37
@github-actions
Copy link
Contributor

Thanks for your submission! We ask that you sign our Developer Certificate of Origin before we can accept your contribution. You can sign the DCO by adding a comment below using this text:


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


2nikhiltom seems not to be a GitHub user. You need a GitHub account to be able to sign the DCO. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the DCO Assistant Lite bot.

@netlify
Copy link

netlify bot commented Nov 24, 2025

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit 7e100a7
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/692443843918cf000819e23b
😎 Deploy Preview https://deploy-preview-21068--v11-carbon-web-components.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 project configuration.

@codecov
Copy link

codecov bot commented Nov 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.60%. Comparing base (19424c0) to head (7e100a7).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #21068   +/-   ##
=======================================
  Coverage   92.60%   92.60%           
=======================================
  Files         515      515           
  Lines       38220    38223    +3     
  Branches     5861     5867    +6     
=======================================
+ Hits        35392    35395    +3     
  Misses       2678     2678           
  Partials      150      150           
Flag Coverage Δ
main-packages 85.61% <100.00%> (+<0.01%) ⬆️
web-components 96.87% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@netlify
Copy link

netlify bot commented Nov 24, 2025

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 7e100a7
🔍 Latest deploy log https://app.netlify.com/projects/carbon-elements/deploys/6924438490002b0008c53650
😎 Deploy Preview https://deploy-preview-21068--carbon-elements.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 project configuration.

@netlify
Copy link

netlify bot commented Nov 24, 2025

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 7e100a7
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/69244384ff30520008cf687b
😎 Deploy Preview https://deploy-preview-21068--v11-carbon-react.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 project configuration.

@2nikhiltom
Copy link
Contributor Author

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

@2nikhiltom
Copy link
Contributor Author

recheck

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.

[a11y]: [RadioTile][SelectableTile] aria-describedBy applies incorrectly

1 participant