Skip to content

Conversation

@maradwan26
Copy link
Contributor

@maradwan26 maradwan26 commented Dec 18, 2025

Closes #21127

Fixes an issue where the focusWrap in ActionableNotification did not include children elements, resulting in interactive elements inside of the notification to not be tabbable.

Changelog

New

  • Web Components: Updated focus behaviour to focus the actionable-notification-button on the first render (if it exists)
    • Note that the original issue this PR addresses with the focusWrap only exists in React so a fix wasn't needed for WC, this is just something I noticed while checking WC

Changed

  • React: Moved the innerModal <div> that was used inside of the focusWrap to include children elements
    • Added test and updated snapshots to cover this change

Testing / Reviewing

  • Go to Notifications/Actionable/Test in React
  • You should be able to tab to the links and then have the focus wrap around so the focus gets trapped within the notification
  • Go to any of the Notifications/Actionable stories in WC
  • Actionable Notification Button should be focused on initial render

Note

Test story and related imports should be removed before merging

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

@maradwan26 maradwan26 requested a review from a team as a code owner December 18, 2025 19:37
@netlify
Copy link

netlify bot commented Dec 18, 2025

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 48f8c18
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/694457e9659d530008f1b9ac
😎 Deploy Preview https://deploy-preview-21205--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

netlify bot commented Dec 18, 2025

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 48f8c18
🔍 Latest deploy log https://app.netlify.com/projects/carbon-elements/deploys/694457e97fd1b10007ecd739
😎 Deploy Preview https://deploy-preview-21205--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 Dec 18, 2025

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 83cb9e1
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/694459578f99850008493cb1
😎 Deploy Preview https://deploy-preview-21205--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

codecov bot commented Dec 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.16%. Comparing base (9034d3d) to head (37836a7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #21205      +/-   ##
==========================================
+ Coverage   85.14%   85.16%   +0.02%     
==========================================
  Files         530      530              
  Lines       40900    40900              
  Branches     6289     6345      +56     
==========================================
+ Hits        34823    34833      +10     
+ Misses       5917     5906      -11     
- Partials      160      161       +1     
Flag Coverage Δ
main-packages 85.80% <100.00%> (+0.06%) ⬆️
web-components 84.80% <ø> (ø)

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 Dec 18, 2025

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 37836a7
🔍 Latest deploy log https://app.netlify.com/projects/carbon-elements/deploys/694459c0ca764700080e5508
😎 Deploy Preview https://deploy-preview-21205--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 Dec 18, 2025

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 37836a7
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/694459c09f6885000859594d
😎 Deploy Preview https://deploy-preview-21205--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

netlify bot commented Dec 18, 2025

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

Name Link
🔨 Latest commit 37836a7
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/694459c09876830008a90ea2
😎 Deploy Preview https://deploy-preview-21205--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.

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.

[Bug]: ActionableNotification focusWrap does not allow for children to be tabbable

1 participant