Skip to content

Commit 381f616

Browse files
committed
Merge pull request react-bootstrap#1047 from react-bootstrap/add-doc-anchor-focus-style
Show anchor icons when links are focused as well as hovered
2 parents 8379dad + 5cd1326 commit 381f616

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/assets/style.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,14 @@ body {
188188
left: -0.8em;
189189
opacity: 0;
190190
}
191+
191192
h1:hover .anchor-icon,
193+
h1 a:focus .anchor-icon,
192194
h2:hover .anchor-icon,
195+
h2 a:focus .anchor-icon,
193196
h3:hover .anchor-icon,
194-
h4:hover .anchor-icon {
197+
h3 a:focus .anchor-icon,
198+
h4:hover .anchor-icon,
199+
h4 a:focus .anchor-icon {
195200
opacity: 0.5;
196201
}

0 commit comments

Comments
 (0)