fix(a11y): address axe color-contrast violations on dark surface
This commit is contained in:
@@ -120,6 +120,14 @@ a, .link {
|
||||
&:hover { color: var(--color-primary); }
|
||||
}
|
||||
|
||||
/* Inline links inside flowing text need an underline so they remain
|
||||
* distinguishable from surrounding text without relying solely on color
|
||||
* (WCAG 2.4.4 / axe link-in-text-block). */
|
||||
p a, li a, dd a, td a, blockquote a {
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
|
||||
h1 a, .h1 a,
|
||||
h2 a, .h2 a,
|
||||
h3 a, .h3 a {
|
||||
|
||||
Reference in New Issue
Block a user