-
|
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
stylesprop to provide custom style overrides toDropdownand other components in Fluent UI v8.Here's an Codepen example that makes the v8 Dropdown option background
hotpinkwhen hovered.The
IDropdownStylesinterface under the Implementation section of the Dropdown docs provides more details.Fluent v9
In Fluent UI v9 you can use
makeStylesto supply a className to theOptioncomponent.Here's an Codesandbox example that makes the v9 Dropdpwn Option background
hotpinkwhen hoveredHere's a guide on getting started styling v9 components.