-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @jbk75 , You didn't mention if you're using Fluent v8 or v9 so I've got answers for both :) Fluent v8You can use the Here's an Codepen example that makes the v8 Dropdown option background The Fluent v9In Fluent UI v9 you can use Here's an Codesandbox example that makes the v9 Dropdpwn Option background |
Beta Was this translation helpful? Give feedback.
Hello @jbk75 ,
You didn't mention if you're using Fluent v8 or v9 so I've got answers for both :)
Fluent v8
You can use the
styles
prop to provide custom style overrides toDropdown
and other components in Fluent UI v8.Here's an Codepen example that makes the v8 Dropdown option background
hotpink
when hovered.The
IDropdownStyles
interface under the Implementation section of the Dropdown docs provides more details.Fluent v9
In Fluent UI v9 you can use
makeStyles
to supply a className to theOption
component.Here's an Codesandbox example that makes the v9 Dropdpwn Option background
hotpink
when hoveredHere's a guide on getting started styling v9 components.