Skip to content
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

Triangle slider smoothed edges #204

Open
paccerdk opened this issue Jul 8, 2022 · 0 comments
Open

Triangle slider smoothed edges #204

paccerdk opened this issue Jul 8, 2022 · 0 comments

Comments

@paccerdk
Copy link

paccerdk commented Jul 8, 2022

I'm experiencing jagged edges of the triangle sliders, which becomes even more obvious with certain configurations (opacity, dimensions)
image

This can be worked around with a simple css change, changing the following (or your equivalent):
'--slider-bg': 'linear-gradient(var(--slider-bg-direction), transparent 0%, transparent 50%, var(--slider-color) 50%, var(--slider-color) 100%)'

to

'--slider-bg': 'linear-gradient(var(--slider-bg-direction), transparent 0%, transparent 49%, var(--slider-color) 50%, var(--slider-color) 100%)'

gives a much smoother look, like so:
image

its not a perfect solution, but much better than the jagged edges in my opinion.
(and there doesn't seem to be any better solutions for using linear-gradient).

It would be nice to have as an configuration option at least, since everyone might not always want this ;)

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

1 participant