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:
parent
252f4f1df1
commit
fdbfa3c03f
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue