-
Notifications
You must be signed in to change notification settings - Fork 77
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
calcite-color-picker: should be responsive to container sizes #8463
Comments
note: Seems like the color-picker component should be more flexible in its sizing. It should respond to its container and not overflow its boundaries. |
Design expertise sought on the color controls for the container sizing and/if design tokens could mitigate. |
Design work completed with #9415. See this Figma file for new default widths and a fixed 1:1.8 aspect ratio for the color field when resizing the Color Picker. |
**Related Issue:** #8463 ## Summary This updates `color-picker` to adjust its layout for custom width values larger than the default width for each scale. ### Notes * The component will initialize with min-widths corresponding to scale, but can be overridden to grow by using `inline-size` * The color field will preserve its aspect ratio * Extracts common `Dimensions` interface
Installed and assigned for verification. |
I don't see it fixed for FF. FF Using Calcite Components 3.0.0-next.123 [Date: 2025-01-29, Revision: a43ecfe] ![]() |
I dug into this further, and it seems to be a separate issue. The related feature allows the color picker to expand beyond the scale-defined min-width and adapt to the layout. We could add |
@jcfranco So is there anything else for us to do with this issue? I'm still seeing the horizontal scrollbars on Safari and FF using the provided repro cases and on |
The scrollbars are unrelated to the color picker, so no further action needed here. |
🍡 Verified |
**Related Issue:** #8463 ## Summary This updates `color-picker` to adjust its layout for custom width values larger than the default width for each scale. ### Notes * The component will initialize with min-widths corresponding to scale, but can be overridden to grow by using `inline-size` * The color field will preserve its aspect ratio * Extracts common `Dimensions` interface
Check existing issues
Actual Behavior
If color-picker is inside a panel that scrolls vertically then horizontal scrollbars appear in FF. Chrome is fine.
If you set
display:flex
on the color-picker andoverflow:hidden
on its container inside the shadow-dom then it's correct.cc @driskull
Expected Behavior
No horizontal scroll bars in any browser.
Reproduction Sample
https://codepen.io/afreitag/pen/KKYgKzW
https://codepen.io/afreitag/pen/OJqLWEB
Reproduction Steps
Open codepen in Chrome and Firefox. You'll see horizontal scrollbars in FF.
Reproduction Version
2.1.0
Relevant Info
Firefox
Regression?
no
Priority impact
p1 - need for current milestone
Impact
No response
Calcite package
Esri team
ArcGIS Map Viewer
The text was updated successfully, but these errors were encountered: