Closed sasham43 closed 2 years ago
Good find! I think I might have done it like that because I do not like to look at that empty class attribute in dev tools :-). But your solution is better! Thanks for observing and taking the time to do the PR! BR Nicolai
Is your feature request related to a problem? Please describe. It's difficult to style
slider-indicator
buttons because all of their classes are stripped when adding/removing theactive
class. I'm trying to dynamically style these using Tailwind, so using CSS / inline styles aren't really an option.Describe the solution you'd like Check if the element has the
active
class, then selectively remove that class instead of removing the entireclass
attribute.Loving the simplicity of this slider, just want to be able to implement more color customization options beyond light & dark.