-
Notifications
You must be signed in to change notification settings - Fork 207
feat(slider)!: migrating tokens #1547
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
cd669f3 to
53fc5e3
Compare
|
🚀 Deployed on https://pr-1547--spectrum-css.netlify.app |
lunarfusion
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.
Ignore anything that isn't helpful, of course!
components/slider/index.css
Outdated
| &:last-of-type { | ||
| &:before { | ||
| border-start-start-radius: 0; | ||
| border-end-start-radius: 0; |
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.
I think lines 176 and 177 are redundant of lines 158 and 159.
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.
they all are! unclear why they were added in the non-core-tokens version.
|
@lunarfusion I addressed your feedback! Thanks a lot for the impressive review, excellent work! The only thing missing here is the top centering that I can't get to work as mentioned above. The handle aligns in the center of the entire Slider height, not just the center of the track. Thanks for pointing me to a good solution! |
pfulton
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.
It looks like there might be a mismatch between the track color and the tick color (zoomed in to see the difference) - or - maybe there's a z-index issue here?
Also, with regard to the tick position & the handle, there's an open PR from last year that you might be able to get some info from.
Nah, it's just the wrong color. we don't use tokens for the ticks and even in the current version of slider there is a color bug for the disabled ticks. |
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 fixing up the positioning of the tick and the handle!
I noticed a few new things in this most recent review:
It looks like the spacing on the right side of the handle has been adversely affected by the recent changes:
It's particularly noticeable on the slider with two handles:

Also, the tick/track color difference seems to still be an issue:

Finally, would you mind double-checking on the Windows High Contrast Mode styles? It looks like (at least) the standard, non-disabled version of the track color needs to be fixed:
pfulton
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.
|
@pfulton this actually adds a wider space between the slider handle on the right side between the handle and the track. I would suggest to maybe not implement this solution. |
Ok. Because this has been a long-standing issue with this component in our docs site, we still need to fix this problem before we merge the PR in. If you get stuck on finding a solution, please mention it in the |
I will add to the ticket the PRs and ping @pfulton about the updates. |
6c7f2da to
e1460a5
Compare











Core tokens migration for Slider.
Includes t-shirt sizing
Description
Migrated and modded all vars.
Added t-shirt sizing
ticket: https://jira.corp.adobe.com/projects/CSS/issues/CSS-177
Issues Addressed
How and where has this been tested?
Screenshots
Firefox:

Safari:

QA notes
To-do list