Skip to content

Commit 664dbe9

Browse files
committed
feat: add checkbox error state asset and class
1 parent 0b7b851 commit 664dbe9

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 20 additions & 0 deletions
Loading

src/css/forms.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,10 @@ $checkbox-hover-bg-image: url('../assets/icons/ic-checkbox-hover.svg');
310310
background-image: url('../assets/icons/ic-checkbox-selected.svg');
311311
}
312312

313+
.form__checkbox.error:checked[value='CHECKED'] ~ .form__checkbox-container {
314+
background-image: url('../assets/icons/ic-checkbox-selected-error.svg');
315+
}
316+
313317
.form__checkbox:checked[value='BULK_CHECKED'] ~ .form__checkbox-container {
314318
background-image: url('../assets/icons/ic-bulk-check.svg');
315319
}

0 commit comments

Comments
 (0)