Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Slider: Allow styling of track tick colour #621

Closed
WillsB3 opened this issue Nov 12, 2014 · 3 comments
Closed

Slider: Allow styling of track tick colour #621

WillsB3 opened this issue Nov 12, 2014 · 3 comments

Comments

@WillsB3
Copy link

WillsB3 commented Nov 12, 2014

Currently, as far as I can see, tick marks are always rendered in black. Because the ticks are drawn via canvas they are not customisable with CSS.

We have a use case where a white slider is rendered on a dark background. This makes the tick marks difficult to see (infact, it just looks like there are gaps in the sliders track).

@ThomasBurleson
Copy link
Contributor

The ticks and track should be part of the theme solution. Thank you for the alert.

@ajoslin
Copy link
Contributor

ajoslin commented Jan 6, 2015

These are now themable. The background-color of the '.md-track-ticks' element is read with getComputedStyle().

@ajoslin ajoslin closed this as completed in 91bc598 Jan 6, 2015
@WillsB3
Copy link
Author

WillsB3 commented Jan 6, 2015

Excellent! Thanks :)

kashyapkaki pushed a commit to kashyapkaki/material that referenced this issue May 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants