fix: focus behavior
This commit is contained in:
parent
5204abbc3b
commit
95c90d13a3
3 changed files with 10 additions and 5 deletions
|
@ -27,14 +27,19 @@ button {
|
|||
transition-duration: var(--transition-duration-default);
|
||||
}
|
||||
|
||||
&:not(.active):focus,
|
||||
&:not(.active):focus-within {
|
||||
&:not(.theme-toggle, .active):focus,
|
||||
&:not(.theme-toggle, .active):focus-within {
|
||||
transition-property: none;
|
||||
outline: 2px dashed var(--accent-color);
|
||||
padding: calc(var(--sizing-sm) + 2px) calc(var(--sizing-lg) + 2px);
|
||||
border: 0;
|
||||
}
|
||||
|
||||
&.theme-toggle:focus,
|
||||
&.theme-toggle:focus-within {
|
||||
outline: 2px dashed var(--accent-color);
|
||||
}
|
||||
|
||||
&.small {
|
||||
font-size: var(--font-size-sm);
|
||||
line-height: var(--line-height-sm);
|
||||
|
|
Reference in a new issue