Skip to content

I want to notify users when a field has an invalid value. #546

Answered by vnbaaij
dimohy asked this question in Q&A
Discussion options

You must be logged in to vote

We will add this to the library for v3.0 final. As a workaround, add this somewhere in your CSS:

.invalid::part(root) {
    outline: 1px solid var(--error);
}

.invalid[role='checkbox']::part(control) {
    outline: 1px solid var(--error);
}

Will give you this:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dimohy
Comment options

Answer selected by dimohy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants