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, &:hover {
&:focus {
background-color: var(--highlight-medium); background-color: var(--highlight-medium);
outline: none; 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 { a {
display: flex; display: flex;
margin: 0.25em; margin: 0.25em;

View File

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