From 8de5f0fa2873f64be0622aced46e1512c7f4fac5 Mon Sep 17 00:00:00 2001 From: "Mr.Hope" Date: Tue, 25 May 2021 01:02:52 +0800 Subject: [PATCH] fix(theme-default): show header anchors when being focused (#164) --- .../@vuepress/theme-default/src/client/styles/_normalize.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/@vuepress/theme-default/src/client/styles/_normalize.scss b/packages/@vuepress/theme-default/src/client/styles/_normalize.scss index b4f679b9ec..fd07e1d854 100644 --- a/packages/@vuepress/theme-default/src/client/styles/_normalize.scss +++ b/packages/@vuepress/theme-default/src/client/styles/_normalize.scss @@ -107,6 +107,10 @@ a.header-anchor { &:hover { text-decoration: none; } + + &:focus-visible { + opacity: 1; + } } code,