Floating label always shown because of -moz-placeholder rule #4462
Unanswered
laufhannes
asked this question in
Q&A
Replies: 1 comment
-
|
check the browserslist used in project - I suppose you don't have one or you have one that generates support for old firefox versions |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Replicating the floating label example from the docs causes the label to be shown even if the input field is input. I can't reproduce it in Tailwind Play and the docs look fine for me as well, so there's some configuration generating a strange rule in my scenario.
The inspector tells me that
:is(.floating-label:focus-within, .floating-label:not(:has(input:-moz-placeholder, textarea:-moz-placeholder))) > spanis active. It's in@layer utilities { @layer daisyui.l1.l2.l3 {and I did not enable this rule by purpose anywhere.We're on DaisyUI 5.5.19 and Tailwind 4.2.1.
Beta Was this translation helpful? Give feedback.
All reactions