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

How to show tick legends but not ticks #344

Open
massic80 opened this issue Dec 22, 2022 · 2 comments
Open

How to show tick legends but not ticks #344

massic80 opened this issue Dec 22, 2022 · 2 comments

Comments

@massic80
Copy link

Similarly to #343 , I'd like to show the legends, automatically added when setting a stepsArray and showTicks or showTicksValues , but not the tick dots. At the moment I overrode the CSS, but I'd prefer an option to do it within the APIs.

@ms270169
Copy link

ms270169 commented Feb 23, 2023

How did you override CSS?

Modification in global file styles.css works:

.ngx-slider-tick {
   width: 0!important;
   height: 0!important;
}

But I would prefer a local solution in the component where the slider is used. Any ideas?

@massic80
Copy link
Author

Hi, I don't remember the override (I made an amend to someone else's style customizaton), but I can see a

.ngx-slider-tick {
	background-color: transparent !important;
}

and I figure out I implemented this solution in order to avoid "repositioning" other parts.
I'd prefer a parameter to do the same without "breaking it up"

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

2 participants