Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,20 @@ export const GlobalStyles = () => {
font-family: ${theme.fontFamily};
}

/* WCAG 1.4.3: Minimum Contrast — route link colors through theme
tokens so they adapt to light, dark, and custom themes. Buttons
rendered as `<a class="ant-btn ...">` or `role="button"` carry
their own component-level coloring and override these values, so
a single global rule is enough; the previous duplicated selector
had no effect over the simple `a` rule. The 4.5:1 contrast
guarantee depends on the active theme's `colorLink` /
`colorLinkHover` tokens being tuned for the paired `colorBgBase`. */
a {
color: ${theme.colorLink};
}
a:hover {
color: ${theme.colorLinkHover};
}

h1,
h2,
Expand Down
Loading