-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Update spacing in CircularOptionPicker #36014
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,19 +11,17 @@ $color-palette-circle-spacing: 12px; | |
justify-content: flex-end; | ||
} | ||
|
||
// Effectively negates the end swatch spacing to keep the swatches | ||
// from wrapping before necessary. | ||
.components-circular-option-picker__swatches { | ||
margin-right: -$color-palette-circle-spacing; | ||
display: flex; | ||
flex-wrap: wrap; | ||
gap: $color-palette-circle-spacing; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As noted, if you add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The problem with I think it's best to leave it as-is here. And in #36018, since we know the number of columns, we can use |
||
} | ||
} | ||
|
||
.components-circular-option-picker__option-wrapper { | ||
display: inline-block; | ||
height: $color-palette-circle-size; | ||
width: $color-palette-circle-size; | ||
margin-right: $color-palette-circle-spacing; | ||
margin-bottom: $color-palette-circle-spacing; | ||
vertical-align: top; | ||
transform: scale(1); | ||
transition: 100ms transform ease; | ||
|
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.
This could be removed if we're okay with the spacing not being justified as space-between. We can still keep the 6 columns, and I think it looks okay that way.