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,13 +306,21 @@
color: var(--primary-low-mid);
transition: color 0.25s;
}
@include hover {
background: transparent;
.discourse-no-touch & {
&:hover,
&:focus {
color: var(--primary);
.d-icon {
color: var(--primary);
}
}
&:hover {
background: transparent;
}
&:focus {
background: var(--primary-low);
}
}
&.close {
padding: 0;
background: transparent;
@ -320,13 +328,16 @@
.d-icon {
color: var(--primary-high);
}
@include hover {
.discourse-no-touch & {
&:hover,
&:focus {
background: transparent;
.d-icon {
color: var(--primary);
}
}
}
}
&.btn-text {
color: var(--tertiary);
&[disabled] {