#Slider thumb visibility

8 messages · Page 1 of 1 (latest)

naive moss
#

Hello there
hiding the thumb reveals the progress bar, despite that the value is zero. is there a non-hacky way to fix this?

unkempt prawn
#

You can customize component styles with Styles API

naive moss
#

is it customizable just by styles? it seems i need to change the size to 0 when value is 0. not the best way. but --slider-bar-width is defined inside a js file

unkempt prawn
naive moss
#

this seems to fixed the issue. overflow hidden hides the extra parts, and padding: 0 gets back the lost width

naive moss
#

@unkempt prawn , can you give some pointers how to set the width? do you mean calculate it dynamically and set it? my css works, but it's tricky if I want to keep rounded borders

unkempt prawn
naive moss
#

yes, that's what i meant by "hacky" if we're hiding it conditionally 🙂