-
Notifications
You must be signed in to change notification settings - Fork 80
fix(slider): slider handle aligns with track when font size changes #5372
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
fix(slider): slider handle aligns with track when font size changes #5372
Conversation
This PR has been automatically marked as stale because it has not had recent activity. Please close your PR if it is no longer relevant. Thank you for your contributions. |
This PR has been automatically marked as stale because it has not had recent activity. Please close your PR if it is no longer relevant. Thank you for your contributions. |
</head> | ||
<body> | ||
<calcite-slider label-handles min-value="50" max-value="70" range></calcite-slider> | ||
<calcite-slider label-handles value="70"></calcite-slider> |
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.
should we add all types of slider's available to users in this test?
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 ended up adding more slider variants in a single test. This can be hard to maintain in terms of updating the test but adds value in identifying regression for larger font-size.
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.
Is there a way we could achieve this primarily with HTML + CSS?
I am able to prototype the solution using CSS . Earlier i assumed the handle element doesn't scale with increase in font-size (track, ticks & font of labels are scaling wrt font-size) which is why we need to determine the translate co-ordinates for |
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.
Awesome!
…nto benelan/docker * 'benelan/docker' of github.com:esri/calcite-components: chore(handle): add message bundles for translation. (#6493) chore(release): 1.0.8-next.0 chore(linting): block commits if there are unused imports (#6487) test(modal): restore fixed E2E tests (#6486) fix(slider): slider handle aligns with track when font size changes (#5372)
Related Issue: #4721
Summary:
This PR will align slider thumb handles with track with respect to font-size of the browser.