Skip to content

Commit

Permalink
feat(checkbox): add explicit style for invalid checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
apust committed Oct 5, 2020
1 parent 6e7c430 commit f23292e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/packages/core/src/checkbox/checkbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,7 @@
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5 3H19C20.1 3 21 3.9 21 5V19C21 20.1 20.1 21 19 21H5C3.9 21 3 20.1 3 19V5C3 3.9 3.9 3 5 3ZM6 19H18C18.55 19 19 18.55 19 18V6C19 5.45 18.55 5 18 5H6C5.45 5 5 5.45 5 6V18C5 18.55 5.45 19 6 19Z' fill='%23E6243C'/%3E%3C/svg%3E");
}
}

._e_checkbox__input_invalid + ._e_checkbox__icon::before {
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5 3H19C20.1 3 21 3.9 21 5V19C21 20.1 20.1 21 19 21H5C3.9 21 3 20.1 3 19V5C3 3.9 3.9 3 5 3ZM6 19H18C18.55 19 19 18.55 19 18V6C19 5.45 18.55 5 18 5H6C5.45 5 5 5.45 5 6V18C5 18.55 5.45 19 6 19Z' fill='%23E6243C'/%3E%3C/svg%3E");
}

0 comments on commit f23292e

Please sign in to comment.