Skip to content

How to over-ride default CSS on Slider #1652

Answered by theetrain
chipnetics asked this question in Q&A
Discussion options

You must be logged in to vote

It's possible to override styles via :global() and class selectors.

<style>
	:global(.bx--text-input.bx--slider-text-input) {
		background-color: black;
		color: white;
		font-weight: 600;
	}
</style>

Here's a demo: https://svelte.dev/repl/6e1a4e83c2f54e7e838b1081da3f8bf5?version=3.55.1

Once #1629 is complete, it will be possible to target CSS variables to theme Carbon components.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chipnetics
Comment options

Answer selected by chipnetics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants