typelevel / Laika

Site and E-book Generator and Customizable Text Markup Transformer for sbt, Scala and Scala.js
https://typelevel.org/Laika/
Apache License 2.0
408 stars 44 forks source link

Styling: Dark theme version selection hard to read text #567

Closed j-mie6 closed 6 months ago

j-mie6 commented 7 months ago

The version selector in dark theme uses the primary-color for unselected version text, then primary-color for the selected version background. The text appears to be primary-light on the selected.

The problem is that the background of unselected is left as white (not sure what this corresponds to, however), leading to this:

image

Ideally, the version selector could use the background colour of the page bg-color, and that would fix the problem: this would also make it a bit more consistent in the light-theme too.