-
Notifications
You must be signed in to change notification settings - Fork 235
refactor(slider): use spectrum-tokens #2905
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
Conversation
|
Spectrum CSS PR: adobe/spectrum-css#1547 |
Tachometer resultsChromeaction-bar permalink
action-menu permalink
card permalink
field-label permalink
illustrated-message permalink
menu permalink
meter permalink
overlay permalink
picker permalink
popover permalink
progress-bar permalink
slider permalink
split-button permalink
tooltip permalink
Firefoxaction-bar permalink
action-menu permalink
card permalink
field-label permalink
illustrated-message permalink
menu permalink
meter permalink
overlay permalink
picker permalink
popover permalink
progress-bar permalink
slider permalink
split-button permalink
tooltip permalink
|
96efa59 to
77f48bc
Compare
81fa201 to
db10bfb
Compare
2720aa4 to
f30913d
Compare
f30913d to
e2487a0
Compare
|
@Westbrook ok this one is ready for your review! I believe all of the VRT failures are due to some changes in spacing that are expected |
|
Looks like that "label" and the "value" receive different styles which cause them not to share the same baseline. This is particularly evident in the "large" and "extra large" versions as can be exhibited in the CSS preview as well: https://pr-1696--spectrum-css.netlify.app/slider.html
|
|
This VRT points out a bug in Field Label where we are not applying a |
|
We use a handful of CSS Custom Properties internally: Can you confirm that these align to the update names? Also, if you would be so kind, would you mind fixing the typo in https://github.com/adobe/spectrum-web-components/blob/slider-core-tokens/packages/slider/src/HandleController.ts#L496 there's |
@Westbrook This was checked and approved by PJ who recognized that this pixel or two difference was due to the line height of the label that's being applied. We have a token in place that moves the slider up some negative margin to account for that and design deemed that as acceptable. Are you thinking it shouldn't be? |
a96b007 to
1d46dbf
Compare
|
@Westbrook I went through and checked the custom CSS you all are implementing. Most of it is specific to SWC and wasn't in Spectrum CSS in the first place so we should be good there (your first two links). I did update the third link to reference the new variable coming in from Spectrum CSS just to eliminate an unneeded middle variable. I also went through the custom CSS file and removed some CSS that is no longer needed due to it being implemented in Specturm CSS. Specifically the I will put up a PR for the bug fix for Field Label in Spectrum CSS and hopefully we can get that in quickly! |
|
@mlogsdon18 this is looking good! If we're able to get a stable release for this (and, hopefully, the Field Label) CSS then we'll be ready to clean up the VRTs, etc and merge this. Thanks for following up on everything and getting those ready to go. 🙇🏼♂️ |
86dc6b6 to
55db04d
Compare
|
@Westbrook WOO! I got some full releases and they have been updated in this PR
|
55db04d to
e7bb606
Compare
e7bb606 to
5150c9e
Compare
f01d40f to
1dbc4bb
Compare
Westbrook
left a comment
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.
@mlogsdon18 thanks for pushing this one through. Lots of great updates coming to our consumers here. Happy Friday!!



Description
Migrates Slider to the new tokens system. Using beta release. Hold for full release.
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.