Fix unnecessary highlighting of selected element

Use focus-visible to only show focus ring on keyboard navigation

Fix #34589

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
Carl Schwan 2022-10-17 15:29:02 +02:00
parent 44d2eb8b4e
commit e3d8fd6544
3 changed files with 5 additions and 5 deletions

View file

@ -609,8 +609,8 @@ table td.selection {
.select-all + label {
padding: 16px;
}
.files-fileList tr td.selection > .selectCheckBox:focus + label,
.select-all:focus + label {
.files-fileList tr td.selection > .selectCheckBox:focus-visible + label,
.select-all:focus-visible + label {
background-color: var(--color-background-hover);
border-radius: var(--border-radius-pill);
outline: none !important;

View file

@ -504,7 +504,7 @@ table td.selection {
padding: 16px;
}
&:focus + label {
&:focus-visible + label {
background-color: var(--color-background-hover);
border-radius: var(--border-radius-pill);
outline: none !important;

View file

@ -609,8 +609,8 @@ table td.selection {
.select-all + label {
padding: 16px;
}
.files-fileList tr td.selection > .selectCheckBox:focus + label,
.select-all:focus + label {
.files-fileList tr td.selection > .selectCheckBox:focus-visible + label,
.select-all:focus-visible + label {
background-color: var(--color-background-hover);
border-radius: var(--border-radius-pill);
outline: none !important;