-
Notifications
You must be signed in to change notification settings - Fork 535
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
Move flex-shrink: 0
to BaseVisualContainer
.
#1596
Conversation
🦋 Changeset detectedLatest commit: a7ce0e9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
size-limit report 📦
|
@@ -295,6 +295,7 @@ const BaseVisualContainer = styled.div<{variant?: ItemProps['variant']; disabled | |||
height: 20px; | |||
width: ${get('space.3')}; | |||
margin-right: ${get('space.2')}; | |||
flex-shrink: 0; |
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.
Instead of this change, I think we could move the flex-shrink: 0
to an sx
prop on the <BaseVisualContainer />
used in <Item />
for single-select action lists, but this seemed like a more correct fix.
Happy to switch to the more targeted approach if we feel like it is safer.
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!
@dmarcey Sorry for letting this go stale! Do you mind updating this with |
This is to address a bug where in a single-select action menu, if an item wraps, it will become misaligned with other items in the list.
44ecf0f
to
a7ce0e9
Compare
Thanks @siddharthkp! Rebase complete and CI is green! |
* Move `flex-shrink: 0` to `BaseVisualContainer`. This is to address a bug where in a single-select action menu, if an item wraps, it will become misaligned with other items in the list. * Added changeset * Updated test snapshots
This is to address a bug where in a single-select action menu, if an item wraps, it will become misaligned with other items in the list.
Closes #1595
Screenshots
Before:
After:
Story changes (not included in PR) that I made to repro this scenario:
Merge checklist