mirror of
https://github.com/nextcloud/server.git
synced 2026-03-23 19:03:20 -04:00
Add focus-visible outline for checkboxes and radio buttons
To make keyboard navigation visible in forms. When clicking with the mouse it doesn't appear. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
parent
b4ccadea2b
commit
23c143e034
1 changed files with 6 additions and 0 deletions
|
|
@ -366,6 +366,12 @@ input {
|
|||
&:focus + label:before {
|
||||
border-color: var(--color-primary-element);
|
||||
}
|
||||
&:focus-visible + label {
|
||||
outline-style: solid;
|
||||
outline-color: var(--color-primary-element);
|
||||
outline-width: 1px;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
&:checked + label:before,
|
||||
&.checkbox:indeterminate + label:before {
|
||||
/* ^ :indeterminate have a strange behavior on radio,
|
||||
|
|
|
|||
Loading…
Reference in a new issue