swarm-ui: keyboard focus keeps a visible ring on interactive cards and notification boxes
This commit is contained in:
parent
dd5fde848f
commit
528c4476cb
1 changed files with 8 additions and 2 deletions
|
|
@ -15,7 +15,11 @@
|
|||
[role="button"].ui-card:hover,
|
||||
[role="button"].ui-card:focus-visible {
|
||||
border-color: var(--purple);
|
||||
outline: none;
|
||||
}
|
||||
/* Keyboard focus needs more than the hover tint, so it keeps a real ring. */
|
||||
[role="button"].ui-card:focus-visible {
|
||||
outline: 2px solid var(--purple);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
/* A solid border (not just the hover tint above, which needs to keep
|
||||
meaning "hovering", not double as "selected") plus a faint fill so a
|
||||
|
|
|
|||
Loading…
Reference in a new issue