Fix styles in support form when field is errored

Ah right, `> label` doesn't work with how Rails will wrap broken labels
and inputs each in a `.field_with_errors` element. Fixed, and added
some basic coloring!
This commit is contained in:
Emi Matchu 2024-11-30 11:50:31 -08:00
parent 252f4f1df1
commit fdbfa3c03f

View file

@ -19,10 +19,18 @@
gap: .25em
max-width: 60ch
> label
> label, > .field_with_errors label
display: block
font-weight: bold
.field_with_errors
> label
color: $error-color
input[type=text], input[type=url]
border-color: $error-border-color
color: $error-color
&[data-type=radio]
ul
list-style-type: none