From dcf23003f98a1df514761edbcebe50f10832b445 Mon Sep 17 00:00:00 2001 From: Christiane Maier-Stadtherr Date: Thu, 28 Nov 2024 13:15:20 +0100 Subject: [PATCH 1/3] Underline Links Resolve a11y issue #341 --- src/css/custom.css | 1 + 1 file changed, 1 insertion(+) diff --git a/src/css/custom.css b/src/css/custom.css index db65364c..31c05043 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -17,6 +17,7 @@ --ifm-footer-link-hover-color: var(--ifm-color-secondary); --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); --ifm-Footer-link-text-color: #4b8bc3; + --ifm-link-decoration: underline; } /* For readability concerns, you should choose a lighter palette in dark mode. */ From 157189ba5bb6e9cdd2a562151bdd00bb4ef53f65 Mon Sep 17 00:00:00 2001 From: chmst Date: Thu, 28 Nov 2024 18:38:43 +0100 Subject: [PATCH 2/3] Underline links only in texts --- src/css/custom.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/css/custom.css b/src/css/custom.css index 31c05043..81cb3819 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -17,7 +17,6 @@ --ifm-footer-link-hover-color: var(--ifm-color-secondary); --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); --ifm-Footer-link-text-color: #4b8bc3; - --ifm-link-decoration: underline; } /* For readability concerns, you should choose a lighter palette in dark mode. */ @@ -34,6 +33,10 @@ --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); } +.theme-doc-markdown.markdown { + --ifm-link-decoration: underline; +} + .theme-doc-markdown.markdown img { filter: drop-shadow(0.35rem 0.35rem 0.23rem #4A5568); } From 7c9c2b4c41a72e6b5ea3b37fdd073c81844b6d8e Mon Sep 17 00:00:00 2001 From: chmst Date: Thu, 28 Nov 2024 19:37:29 +0100 Subject: [PATCH 3/3] Highlighting links: Remove underline on hover. --- src/css/custom.css | 1 + 1 file changed, 1 insertion(+) diff --git a/src/css/custom.css b/src/css/custom.css index 81cb3819..69456ac3 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -35,6 +35,7 @@ .theme-doc-markdown.markdown { --ifm-link-decoration: underline; + --ifm-link-hover-decoration: none; } .theme-doc-markdown.markdown img {