From e78105429fb8c5b464a9c38030d1bf4bb869f8e1 Mon Sep 17 00:00:00 2001 From: ZhenShuo Leo <98386542+ZhenShuo2021@users.noreply.github.com> Date: Tue, 5 Aug 2025 18:03:57 +0800 Subject: [PATCH] fix(a11y): add underline links on article card --- assets/js/a11y.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/js/a11y.js b/assets/js/a11y.js index ffb8d845..e749a855 100644 --- a/assets/js/a11y.js +++ b/assets/js/a11y.js @@ -37,7 +37,10 @@ window.A11yPanel = (() => { if (enabled && !existing) { const style = document.createElement("style"); style.id = "a11y-underline-links"; - style.textContent = "a { text-decoration: underline !important; }"; + style.textContent = ` + a { text-decoration: underline !important; } + .group-hover-card-title { text-decoration: underline !important; } + .group-hover-card:hover .group-hover-card-title { text-decoration: underline !important; }`; document.head.appendChild(style); } else if (!enabled && existing) { existing.remove();