From ddc3640ce66f606894b31e1b7ebeacaaf7b0f1b5 Mon Sep 17 00:00:00 2001 From: Rami Yushuvaev Date: Thu, 12 Nov 2020 23:22:23 +0200 Subject: [PATCH] fix($theme-default): display header-anchor links when using keyboard navigation --- src/client/theme-default/styles/layout.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/client/theme-default/styles/layout.css b/src/client/theme-default/styles/layout.css index 4bf201293c9a..547a151952d9 100644 --- a/src/client/theme-default/styles/layout.css +++ b/src/client/theme-default/styles/layout.css @@ -182,15 +182,22 @@ a.header-anchor { opacity: 0; } +a.header-anchor:focus, a.header-anchor:hover { text-decoration: none; } +h1:focus .header-anchor, h1:hover .header-anchor, +h2:focus .header-anchor, h2:hover .header-anchor, +h3:focus .header-anchor, h3:hover .header-anchor, +h4:focus .header-anchor, h4:hover .header-anchor, +h5:focus .header-anchor, h5:hover .header-anchor, +h6:focus .header-anchor, h6:hover .header-anchor { opacity: 1; }