A11Y: Fix post control and user-menu focus styles (#13118)

This commit is contained in:
Kris 2021-05-24 04:10:01 -04:00 committed by GitHub
parent 7c29ff3d85
commit 567f9caf75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 5 deletions

View File

@ -284,12 +284,23 @@
}
}
&:hover,
&:focus {
&:hover {
background-color: var(--highlight-medium);
outline: none;
}
&:focus-within {
background: var(--highlight-medium);
a {
// we don't need the link focus because we're styling the parent
outline: 0;
}
.btn-flat:focus {
// undo default btn-flat style
background: transparent;
}
}
a {
display: flex;
margin: 0.25em;

View File

@ -299,10 +299,9 @@
&:focus {
outline: none;
background: var(--primary-medium);
color: var(--secondary);
background: var(--primary-low);
.d-icon {
color: var(--primary-low);
color: var(--primary);
}
}
}