Skip to content

[Range] Allow styling individual thumbs using :nth-child() #1211

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

Open
TheOneTheOnlyJJ opened this issue May 6, 2025 · 1 comment
Open

[Range] Allow styling individual thumbs using :nth-child() #1211

TheOneTheOnlyJJ opened this issue May 6, 2025 · 1 comment

Comments

@TheOneTheOnlyJJ
Copy link

This is a very simple feature request.

The current explainer says:

These pseudo-elements can be used in combination with other CSS selectors, such as :nth-child(), to provide granular control over individual ticks, labels, and segments.

I believe ::range-thumb should also allow this granular control, using the same approach.

@lukewarlow
Copy link
Collaborator

Something interesting here is that currently you can't use structural pseudo classes on pseudo elements. So :nth-child() wouldn't work on any pseudo elements. I'm not sure if this is a restriction we can necessarily loosen. Though perhaps with base appearance having a defined structure it's plausible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants