UX: fix btn-flat focus style (#24156)

This commit is contained in:
Kris 2023-10-30 12:44:38 -04:00 committed by GitHub
parent fbf8528814
commit 923fe3d082
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -306,11 +306,19 @@
color: var(--primary-low-mid); color: var(--primary-low-mid);
transition: color 0.25s; transition: color 0.25s;
} }
@include hover { .discourse-no-touch & {
background: transparent; &:hover,
color: var(--primary); &:focus {
.d-icon {
color: var(--primary); color: var(--primary);
.d-icon {
color: var(--primary);
}
}
&:hover {
background: transparent;
}
&:focus {
background: var(--primary-low);
} }
} }
&.close { &.close {
@ -320,10 +328,13 @@
.d-icon { .d-icon {
color: var(--primary-high); color: var(--primary-high);
} }
@include hover { .discourse-no-touch & {
background: transparent; &:hover,
.d-icon { &:focus {
color: var(--primary); background: transparent;
.d-icon {
color: var(--primary);
}
} }
} }
} }