-
Notifications
You must be signed in to change notification settings - Fork 53
Fix ActionMenu
split-button anchor size
#1015
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ActionMenu
split-button anchor size
#1015
Conversation
🦋 Changeset detectedLatest commit: 27b8901 The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR expands the clickable area of split-button anchors in ActionMenu
to cover the full item by switching the anchor to a grid subgrid and adjusting padding for medium-sized items.
- Changed grid-template-columns to allow the text area to flex.
- Converted the anchor wrapper to use CSS Grid with subgrid sizing.
- Zeroed out parent padding and applied it directly to the anchor for medium items.
- Added a changeset entry summarizing the fix.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
File | Description |
---|---|
packages/react/src/ActionMenu/ActionMenu.module.css | Updated the item’s grid layout, switched the anchor to a full-size subgrid, and added medium padding. |
.changeset/hungry-tips-sing.md | Added a patch changeset noting the fixed clickable area in split-button mode. |
Comments suppressed due to low confidence (2)
packages/react/src/ActionMenu/ActionMenu.module.css:185
- CSS subgrid is only supported in Firefox. Consider adding a fallback layout or confirming that your supported browser list includes subgrid support to avoid broken layouts.
grid-template-columns: subgrid;
packages/react/src/ActionMenu/ActionMenu.module.css:216
- [nitpick] The CSS :has() selector may not be supported in all target browsers and can have performance implications. Verify browser compatibility or consider an alternative approach for broader support.
.ActionMenu__item--medium:has(.ActionMenu__item-anchor) {
🟢 No design token changes found |
🟢 No visual differences foundOur visual comparison tests did not find any differences in the UI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Summary
Fixes an issue in
ActionMenu
where anchor links insplit-button
mode were only clickable on the text. Now, the clickable area covers the full width and height of the item.Storybook
Screenshots: