Files
angular__angular/adev/shared-docs
Kam 23fe1a9116 fix(docs-infra): improve code selection contrast in dark mode
The ::selection background mixes only 10% of the accent color into
--octonary-contrast. In dark mode --octonary-contrast resolves to
gray-900 (#151417), which is the same color code blocks use as their
background, so selected code renders ~90% code-background and is almost
invisible.

Add a .docs-dark-mode ::selection override that raises the tint to 30%
so highlighted text stays legible over the near-black surface. Light
mode is unchanged, as its selection already contrasts the white page.

Fixes #69507

(cherry picked from commit a9e3336aae)
2026-06-30 17:56:39 -07:00
..
2026-06-30 17:43:43 -07:00