Missing invalid float label color #2510
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
CodeSandbox Case (Bug Reports)
https://codesandbox.io/s/kppoii
Current behavior
When submitting directly the form, the p-error class is rightfully set on the floating labels but it does not set the label's color to red.
Expected behavior
The floating label should turn red.
Minimal reproduction of the problem with instructions
Notes
This is due to selector specificity:
.p-float-label>label
wins against.p-error
Two ways I see to solve it:
.p-float-label>label
less specific.p-error
color!important
.p-error
more specific (for example by associating it to.p-float-label
)The text was updated successfully, but these errors were encountered: