input/select components to have a floating label on focus? #23404
-
I also wrote this one over at stackoverflow but I'm writing this here again in case I get some help with my issue. I'm currently creating an SPFX application that uses fluent UI for my forms. I find material UI a bit challenging to use and I wanted something straightforward like fluent UI but I'm trying to modify the CSS of the dropdown component to have the label float when focusing on the dropdown element. something like this codepen here: so far its not working based from the tutorials I have followed probably because of the structure of the Dropdown component when rendered to the browser. Is it possible to do it in fluent UI? this is how I targeted the specific element:
and my SCSS looks like this:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@paigeflourin do you have a codepen of your progress so far I could use as a starting point to look at this? |
Beta Was this translation helpful? Give feedback.
@paigeflourin do you have a codepen of your progress so far I could use as a starting point to look at this?