-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Global Styles: Fix alignment of Global Styles color controls #40081
Conversation
Size Change: +2 B (0%) Total Size: 1.22 MB
ℹ️ View Unchanged
|
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.
Thanks for the fix @aaronrobertshaw! I didn't realise that the underlying Flex
component defaults to expanded: true
to set width to 100%
. In this case the ColorIndicatorWrapper
should be the width of its content to allow the flex item containing the text to sit appropriately next to it, so that makes sense to me 👍
Before | After |
---|---|
LGTM!
Thank you @aaronrobertshaw and @andrewserong , definitely an overlook on my side. 🙇 |
Related:
What?
Fixes broken layout of global styles color controls caused by #39982.
Why?
Looks nicer when text isn't forced outside the control.
How?
Maintains the change in approach added in #39982 however this PR sets the
expanded
prop on theColorIndicatorWrapper
tofalse
so that it adapts better while keeping the vertical alignment intended by the original PR.Testing Instructions
Screenshots or screencast