-
Notifications
You must be signed in to change notification settings - Fork 209
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
feat(color-slider): migrate to core tokens #3507
Conversation
Tachometer resultsChromecolor-area permalink
color-handle permalink
color-slider permalink
color-wheel permalink
Firefoxcolor-area permalink
color-handle permalink
color-slider permalink
color-wheel permalink
|
@Westbrook After looking over the VRTs, this is looking ready for CSS release to me. Does everything look good to you? |
It's worth noting that the new OpacityCheckerboard is not integrated yet on the SWC side. I'd recommend adding a story that shows a gradient with transparency (like the "Alpha" variant in Spectrum CSS), so that this is represented in VRTs. |
For this, do you know if design plans add this border to other color controls? For instance, before I read this I saw this VRT and was struck by the way the two controls don't seem "related". By no means an implementation issue, so not blocking, but a good piece of planning info to have on our end.
Great call, right after we support opacity selection 😬. Wanna contribute some new functionality in a follow up PR? 😉 LGTM. Seems ready for a full release! |
I agree that there should be consistency between these two components. It appears to be this same way (as changes) in the React component as well. I think that ColorArea also should probably have a similar WHCM border to ensure the boundaries of the element are clear. Otherwise the gradient can disappear into the background depending on the gradient and background used. @majornista Do you have any thoughts on this? I see that you've opened some recent WHCM issues. |
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.
Looks good! Rebase, update the ci hash, etc... and it's good to go!
8f49e06
to
c4ada35
Compare
c4ada35
to
0a2f032
Compare
New version of Spectrum CSS colorslider that has migrated to using core tokens.
Remove recently added CSS for reversing the gradient in RTL mode that is now included in the new spectrum CSS colorslider (same rule now exists in generated spectrum-color-slider.css).
Use the new opacity checkerboard tools class.
Update version of spectrum CSS color slider to the latest 5.0 release, just out of beta.
c34a67c
to
6872683
Compare
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.
Took a team effort, but I think we're ready to land this.
I added this comment on the CSS side to try and get to the root of what's going on in the CSS here that needed the local override.
Thanks, everyone!
* build(color-slider): use beta of 5.0 spectrum css component New version of Spectrum CSS colorslider that has migrated to using core tokens. * fix(color-slider): remove css that is now a duplicate Remove recently added CSS for reversing the gradient in RTL mode that is now included in the new spectrum CSS colorslider (same rule now exists in generated spectrum-color-slider.css). * build(color-slider): update beta version of CSS * feat(color-slider): use opacity-checkerboard Use the new opacity checkerboard tools class. * build(color-slider): update to 5.0 spectrum css release Update version of spectrum CSS color slider to the latest 5.0 release, just out of beta. * test: correct tests for layout updates * ci: update golden images cache --------- Co-authored-by: Westbrook Johnson <[email protected]>
* build(color-slider): use beta of 5.0 spectrum css component New version of Spectrum CSS colorslider that has migrated to using core tokens. * fix(color-slider): remove css that is now a duplicate Remove recently added CSS for reversing the gradient in RTL mode that is now included in the new spectrum CSS colorslider (same rule now exists in generated spectrum-color-slider.css). * build(color-slider): update beta version of CSS * feat(color-slider): use opacity-checkerboard Use the new opacity checkerboard tools class. * build(color-slider): update to 5.0 spectrum css release Update version of spectrum CSS color slider to the latest 5.0 release, just out of beta. * test: correct tests for layout updates * ci: update golden images cache --------- Co-authored-by: Westbrook Johnson <[email protected]> fix(number-field): update value on pressing enter chore(number-field): update value on pressing enter
fix(number-field): updated value update logic to call call renderUpdate in numberfield fix(number-field): blur the element on pressing enter fix(slider): updated test chore: fixed merge conflicts feat(color-slider): migrate to core tokens (#3507) * build(color-slider): use beta of 5.0 spectrum css component New version of Spectrum CSS colorslider that has migrated to using core tokens. * fix(color-slider): remove css that is now a duplicate Remove recently added CSS for reversing the gradient in RTL mode that is now included in the new spectrum CSS colorslider (same rule now exists in generated spectrum-color-slider.css). * build(color-slider): update beta version of CSS * feat(color-slider): use opacity-checkerboard Use the new opacity checkerboard tools class. * build(color-slider): update to 5.0 spectrum css release Update version of spectrum CSS color slider to the latest 5.0 release, just out of beta. * test: correct tests for layout updates * ci: update golden images cache --------- Co-authored-by: Westbrook Johnson <[email protected]> fix(number-field): update value on pressing enter chore(number-field): update value on pressing enter fix(number-field): request update on return
fix(number-field): update value on pressing enter fix(number-field): request update on return fix(number-field): updated value update logic to call call renderUpdate in numberfield fix(number-field): blur the element on pressing enter fix(slider): updated test chore: fixed merge conflicts feat(color-slider): migrate to core tokens (#3507) * build(color-slider): use beta of 5.0 spectrum css component New version of Spectrum CSS colorslider that has migrated to using core tokens. * fix(color-slider): remove css that is now a duplicate Remove recently added CSS for reversing the gradient in RTL mode that is now included in the new spectrum CSS colorslider (same rule now exists in generated spectrum-color-slider.css). * build(color-slider): update beta version of CSS * feat(color-slider): use opacity-checkerboard Use the new opacity checkerboard tools class. * build(color-slider): update to 5.0 spectrum css release Update version of spectrum CSS color slider to the latest 5.0 release, just out of beta. * test: correct tests for layout updates * ci: update golden images cache --------- Co-authored-by: Westbrook Johnson <[email protected]> fix(number-field): update value on pressing enter chore(number-field): update value on pressing enter fix(number-field): request update on return fix(number-field): update inputValue on clicking return
fix(number-field): update value on pressing enter fix(number-field): request update on return fix(number-field): updated value update logic to call call renderUpdate in numberfield fix(number-field): blur the element on pressing enter fix(slider): updated test chore: fixed merge conflicts feat(color-slider): migrate to core tokens (#3507) * build(color-slider): use beta of 5.0 spectrum css component New version of Spectrum CSS colorslider that has migrated to using core tokens. * fix(color-slider): remove css that is now a duplicate Remove recently added CSS for reversing the gradient in RTL mode that is now included in the new spectrum CSS colorslider (same rule now exists in generated spectrum-color-slider.css). * build(color-slider): update beta version of CSS * feat(color-slider): use opacity-checkerboard Use the new opacity checkerboard tools class. * build(color-slider): update to 5.0 spectrum css release Update version of spectrum CSS color slider to the latest 5.0 release, just out of beta. * test: correct tests for layout updates * ci: update golden images cache --------- Co-authored-by: Westbrook Johnson <[email protected]> fix(number-field): update value on pressing enter chore(number-field): update value on pressing enter fix(number-field): request update on return fix(number-field): update inputValue on clicking return
Description
Related issue(s)
CSS PR
How has this been tested?
Types of changes
Checklist
Best practices
This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against
main
.