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

md-slider track background #5518

Closed
TeamBusylj opened this issue Mar 6, 2024 · 6 comments · Fixed by #5521
Closed

md-slider track background #5518

TeamBusylj opened this issue Mar 6, 2024 · 6 comments · Fixed by #5521

Comments

@TeamBusylj
Copy link
Contributor

What is affected?

Theming

Description

Hi, I want to set slider tick's color tolinear-gradient with setting --_active-track-color variable to gradient. But it doesn't work because the variable sets background-color of tick instead of background. background-color doesnt support linear gradient.
Is there a way to bypass or fix it?

Reproduction

It doesn't work.

Workaround

I have not found a workaround.

Is this a regression?

No or unsure. This never worked, or I haven't tried before.

Affected versions

1.0.3

Browser/OS/Node environment

All platforms

@asyncLiz
Copy link
Collaborator

asyncLiz commented Mar 6, 2024

Can you provide some screenshots of the design you're trying to achieve? The tick marks are very small, so I'm not sure a linear gradient would be perceivable.

@TeamBusylj
Copy link
Contributor Author

TeamBusylj commented Mar 8, 2024

Hi, i have changed track-height variable to it is taller. This is how it looks like when i set background to gradient in devtools. This is the design i want to achive, but as said background-color css property doesnt support gradient.
image

Where is green underline it has to be background instead of background color:
image

@asyncLiz
Copy link
Collaborator

asyncLiz commented Mar 8, 2024

Gotcha, thanks for the screenshot! Cute slider!

Changing places we're using background-color to background makes sense to me. Could you send a PR?

@TeamBusylj
Copy link
Contributor Author

TeamBusylj commented Mar 9, 2024 via email

@asyncLiz
Copy link
Collaborator

Thanks! I'm reviewing it now :)

@TeamBusylj
Copy link
Contributor Author

TeamBusylj commented Mar 12, 2024 via email

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

Successfully merging a pull request may close this issue.

2 participants