fix(menu-item): bugs with disabled state#21340
Conversation
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #21340 +/- ##
==========================================
- Coverage 95.10% 95.07% -0.03%
==========================================
Files 541 541
Lines 45179 45192 +13
Branches 6537 6482 -55
==========================================
- Hits 42966 42965 -1
- Misses 2084 2098 +14
Partials 129 129
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
121f551 to
415612a
Compare
415612a to
795ebd8
Compare
There was a problem hiding this comment.
looks good, clicking the disabled menu item no longer closes the menu just want to confirm with @carbon-design-system/design about the focus outline still being applied to the disabled item
Hi @olihf-dematic, great work! However the focus shouldn't be on the disabled state.
|
@emyarod FYI I also noticed the issue about the focus border showing on the disabled state is also happening in the react storybook. |
|
@Rory-McDonald thanks for the info! I think we can open a separate ticket for that then @Kritvi-bhatia17 would this PR be ok to merge if the disabled state focus outline is resolved separately? |
@emyarod It would be ideal to address the disabled‑state focus outline issue within this PR since it affects a11y. However, if the fix is broader in scope and will require more time, feel free to make the call. |
|
I don't mind either approach, I noticed when working on it that it was a bit odd to still have the focus. However as it was the same as react I didn't touch it. If it should be done in the same ticket, just let me know and I'll crack on! |
fd3e5bb to
e38d052
Compare
|
Hi @emyarod I've updated this MR to solve the focus issue on React and WC |
|
@Kritvi-bhatia17 Just highlighting the above |
Kritvi-bhatia17
left a comment
There was a problem hiding this comment.
Thank you so much for working on this @olihf-dematic! LGTM visually 🚀
bf130cb
Closes #21337
Fixes styling on disabled menu-item.
Fixes menu closing when clicking disabled menu-item
Changelog
New
Changed
Removed
Testing / Reviewing
PR Checklist
As the author of this PR, before marking ready for review, confirm you:
- [ ] Wrote passing tests that cover this change- [ ] Addressed any impact on accessibility (a11y)More details can be found in the pull request guide