diff --git a/packages/components/src/components/link/link.css b/packages/components/src/components/link/link.css index 6cc41ca9c6..17922fc69e 100644 --- a/packages/components/src/components/link/link.css +++ b/packages/components/src/components/link/link.css @@ -46,6 +46,25 @@ --line-thickness-disabled: var(--line-thickness-initial); } +/* Quick fix for inaccessible link color when placed inside a scale-tooltip */ +:host-context(scale-tooltip) { + /* initial */ + --color: currentColor; + --color-line-initial: currentColor; + /* visited */ + --color-visited: currentColor; + --color-line-visited: currentColor; + /* hover */ + --color-hover: currentColor; + --color-line-hover: currentColor; + /* focus */ + --color-focus: currentColor; + --color-line-focus: currentColor; + /* active */ + --color-active: currentColor; + --color-line-active: currentColor; +} + :host { display: inline; margin-bottom: calc(var(--line-offset) + var(--line-thickness-initial));