Skip to content

fix(a11y): default dangerDescription to empty string#22121

Open
tay1orjones wants to merge 9 commits intocarbon-design-system:mainfrom
tay1orjones:task/danger-description-empty-default
Open

fix(a11y): default dangerDescription to empty string#22121
tay1orjones wants to merge 9 commits intocarbon-design-system:mainfrom
tay1orjones:task/danger-description-empty-default

Conversation

@tay1orjones
Copy link
Copy Markdown
Member

Closes #20515

Changelog

New

  • Add dangerDescription to components that utilize danger buttons

Changed

  • Default dangerDescription to an empty string in react and web components
  • Update modal, dialog, and composed modal wrappers plus related tests and snapshots

Testing / Reviewing

  • dangerDescription should be configurable in the impacted stories

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

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 24, 2026

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit 21808aa
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/69ebd75f7a5dce0008b80ed7
😎 Deploy Preview https://deploy-preview-22121--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.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 24, 2026

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

Name Link
🔨 Latest commit 21808aa
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/69ebd761e1185000084f6361
😎 Deploy Preview https://deploy-preview-22121--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.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 24, 2026

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

Name Link
🔨 Latest commit 904a7ea
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/69f114d7553ab9000855f6ca
😎 Deploy Preview https://deploy-preview-22121--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.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 24, 2026

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit 904a7ea
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/69f114d7064aba00082668fa
😎 Deploy Preview https://deploy-preview-22121--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.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.06%. Comparing base (9009855) to head (904a7ea).
⚠️ Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #22121      +/-   ##
==========================================
+ Coverage   95.05%   95.06%   +0.01%     
==========================================
  Files         539      541       +2     
  Lines       45156    45190      +34     
  Branches     6493     6553      +60     
==========================================
+ Hits        42922    42962      +40     
+ Misses       2105     2099       -6     
  Partials      129      129              
Flag Coverage Δ
main-packages 89.15% <100.00%> (+0.03%) ⬆️
web-components 97.87% <100.00%> (+<0.01%) ⬆️

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.

@wkeese
Copy link
Copy Markdown
Contributor

wkeese commented Apr 25, 2026

Wow that was fast. This looks great to me.

Comment thread packages/web-components/src/components/button/button.ts Outdated
Co-authored-by: Tom Brunet <thbrunet@us.ibm.com>
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]: Danger modal - screen reader announces "danger" on button.

3 participants