fix(a11y): add underline links on article card

This commit is contained in:
ZhenShuo Leo
2025-08-05 18:03:57 +08:00
parent a070040538
commit e78105429f

View File

@@ -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();