mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Display red border around invalid selects
I developed this while going down a slightly different path. I tested it visually, but the case I tested doesn't exist. I'm confident it will work if we ever have an error on another select though.
This commit is contained in:
@@ -194,6 +194,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Errors
|
||||
.field_with_errors .ts-wrapper {
|
||||
.ts-control {
|
||||
border-color: $color-error;
|
||||
}
|
||||
}
|
||||
|
||||
// Display as "changed" if sibling select is marked as changed.
|
||||
select.changed + .ts-wrapper {
|
||||
&.single, &.multi {
|
||||
|
||||
Reference in New Issue
Block a user