diff --git a/superset-frontend/packages/superset-core/src/theme/GlobalStyles.tsx b/superset-frontend/packages/superset-core/src/theme/GlobalStyles.tsx index 33a30a9fa613..a1de0f659d59 100644 --- a/superset-frontend/packages/superset-core/src/theme/GlobalStyles.tsx +++ b/superset-frontend/packages/superset-core/src/theme/GlobalStyles.tsx @@ -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 `` 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,