Skip to content

How to override opacity in FluentSelect? #3218

Answered by rpodevns
ZnowuJa asked this question in Q&A
Discussion options

You must be logged in to vote

The default opacity for the disabled attribute is 0.3 by design. The CSS to override that value is:

fluent-select[disabled] {
    --disabled-opacity: 0.7 !important;
}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by ZnowuJa
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