Change color of FluentListbox item #3231
Answered
by
dvoituron
parsalotfy
asked this question in
Q&A
-
I need to change the color of fluentlist options and I do it like this:
I have nested components, so I couldn't manage to use <style> section, or css file. because it changes the color of all other list boxes in nested components. |
Beta Was this translation helpful? Give feedback.
Answered by
dvoituron
Jan 23, 2025
Replies: 1 comment 1 reply
-
Your code is correct, but the following “item container” needs to be adapted to increase the width... fluent-option::part(content) {
width: 100%;
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
parsalotfy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your code is correct, but the following “item container” needs to be adapted to increase the width...