Use Preact for settings and show validation
This commit is contained in:
parent
44459e39c3
commit
d33b37cdb9
4 changed files with 99 additions and 18 deletions
17
src/settings/components/ui/input.scss
Normal file
17
src/settings/components/ui/input.scss
Normal file
|
@ -0,0 +1,17 @@
|
|||
.form-field-label {
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
.form-field-error {
|
||||
font-weight: bold;
|
||||
color: red;
|
||||
min-height: 1.5em;
|
||||
}
|
||||
|
||||
.form-field-input {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.form-field-input.input-error {
|
||||
box-shadow: 0 0 2px red;
|
||||
}
|
Reference in a new issue