diff --git a/src/content-render/stylesheets/heading-links.scss b/src/content-render/stylesheets/heading-links.scss index adb98d8bbf8f..561b87382e70 100644 --- a/src/content-render/stylesheets/heading-links.scss +++ b/src/content-render/stylesheets/heading-links.scss @@ -11,4 +11,7 @@ mask: url('data:image/svg+xml;charset=utf8,'); mask-size: cover; background-color: var(--color-fg-subtle); + @media (forced-colors: active) { + background-color: LinkText; + } } diff --git a/src/links/stylesheets/hover-card.scss b/src/links/stylesheets/hover-card.scss index 2ee8a56c58ff..68f81d4dff79 100644 --- a/src/links/stylesheets/hover-card.scss +++ b/src/links/stylesheets/hover-card.scss @@ -14,5 +14,8 @@ p.hover-card-anchor { mask-image: url("/assets/cb-479/images/site/hash.svg"); mask-size: cover; vertical-align: middle; + @media (forced-colors: active) { + background-color: LinkText; + } } } diff --git a/src/search/components/SearchResults.module.scss b/src/search/components/SearchResults.module.scss index 9456e0063392..bf81f67768f4 100644 --- a/src/search/components/SearchResults.module.scss +++ b/src/search/components/SearchResults.module.scss @@ -2,6 +2,9 @@ mark { background-color: transparent; font-weight: bold; + @media (forced-colors: active) { + color: CanvasText; + } } word-wrap: break-word;