Repository navigation
fix(themes): readable title and text in the legacy dark theme file - #2240
Merged
Merged
Conversation
themes/introjs-dark.css gives the tooltip a dark background, but the title and the text take their colour from --introjs-color, which the default light theme sets to a dark grey. Set the colour variables on the tooltip in this theme, and make the "Don't show this again" label white too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
themes/introjs-dark.css(the legacy dark theme file) gives the tooltip a dark background (#434A54), but the title and the text stayed dark grey (#212121), so they were hard to read.Why
Since the theme system, the base CSS colours the title, the text and the header with
var(--introjs-color). The tour root gets.introjs-lightby default, which sets that variable to a dark grey. This theme file only setcolor: #fffon.introjs-tooltip, so the variable won.How
--introjs-color: #fffand--introjs-bg: #434A54on.introjs-tooltipinthemes/introjs-dark.css.Only this theme file changes. Other themes and the built-in
theme: "dark"option are not affected.Testing
rgb(255, 255, 255)(before:rgb(33, 33, 33)), checked in Chromium with a screenshot, including the "Don't show this again" option.