Skip to content

How to style an input type range sliders thumb and track #8748

Answered by rohmann
djkato asked this question in Help
Discussion options

You must be logged in to vote

Hi @djkato,

You can see all the pseudo classes included natively here: https://tailwindcss.com/docs/hover-focus-and-other-states#pseudo-class-reference. The range input pseudo classes aren't included. I think Tailwind likes to steer clear of non standard cases like this because it's a whole lot of nuance to support over time. For years the range input has been a strange hodge-podge of selectors across broweser. I'm sure it's something they would consider down the road if a specification emerged to make it consistent

I've not tried it in all browsers, but I've noticed that Chrome based browsers are finicky when it comes to multiple selectors. Breaking them out into their own rule sets (lik…

Replies: 2 comments 16 replies

Comment options

You must be logged in to vote
2 replies
@djkato
Comment options

@rohmann
Comment options

Answer selected by djkato
Comment options

You must be logged in to vote
14 replies
@FredTreg
Comment options

@beyzanur-seyhan
Comment options

@fuad-hasan-safat
Comment options

@yongvuthivann
Comment options

@stanevidanza
Comment options

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