fix(combo-button): prevent hover from stealing focus - #23108
fix(combo-button): prevent hover from stealing focus#23108arslansohail2001 wants to merge 4 commits into
Conversation
✅ Deploy Preview for v12-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v12-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
All contributors have signed the DCO. |
b57d700 to
749774c
Compare
✅ 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. |
1959c69 to
f2546b4
Compare
✅ 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 carbon-elements ready!
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. |
c354222 to
8ac4947
Compare
✅ 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. |
Signed-off-by: Arslan Sohail <arslansohail.2001@gmail.com>
8ac4947 to
4ced519
Compare
|
I have read the DCO document and I hereby sign the DCO. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #23108 +/- ##
==========================================
- Coverage 89.67% 89.65% -0.02%
==========================================
Files 639 639
Lines 58865 58865
Branches 8267 8267
==========================================
- Hits 52786 52778 -8
- Misses 5913 5921 +8
Partials 166 166
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
adamalston
left a comment
There was a problem hiding this comment.
The issue linked in #23108 (comment) doesn't appear to exist.
https://github.com/carbon-design-system/carbon/issues/22831:
This issue has been deleted.
Closes #22831
Fixes a bug where hovering over standard, non-submenu items in a
ComboButtonwould cause them to unexpectedly steal focus becauseuseHoverwas enabled on all items.Changelog
Changed
MenuItemto only enable theuseHoverhook if the item actually has children (i.e. is a submenu).ComboButton-test.jsto ensure that hovering over a standard item does not trigger focus stealing.Testing / Reviewing
ComboButtoncomponent.Alternatively, review the newly added regression test in
ComboButton-test.js.PR Checklist
As the author of this PR, before marking ready for review, confirm you:
Updated documentation and storybook examples(Not applicable)Followed the required v12 migration documentation for any code change that affects v12(Does not affect v12 migration documentation)