A11Y: fix setting focus to a post (#23367)

This is a second attempt to fix this issue. First fix at #23243, see PR for details.
This commit is contained in:
Penar Musaraj
2023-12-07 15:44:42 -05:00
committed by GitHub
parent 290f6a70bd
commit 9dce1592dc
7 changed files with 52 additions and 47 deletions

View File

@@ -3,20 +3,22 @@
border-left: 1px solid transparent;
}
.topic-list tr.selected td:first-child,
.topic-list-item.selected td:first-child,
.topic-list tr.selected,
.topic-list-item.selected,
.latest-topic-list-item.selected,
.search-results .fps-result.selected {
box-shadow: inset 3px 0 0 var(--danger); // needs to be inset for Edge
&:focus-visible {
outline: none;
}
}
.featured-topic.selected,
.topic-post.selected {
box-shadow: -3px 0 0 var(--danger);
}
.tabLoc:focus {
outline: none;
&:focus-visible {
outline: none;
}
}
.latest .featured-topic {