-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Jenkins theme CSS color variables for unset states
The original support for negative/inverse text uses a combination off `currentColor` and a bright-level-7 value. When using a default Jenkins theme, these color definitions work as expected. However, clients using the dark theme may not be able to read the text since both the text and background are a bright color. Modern Jenkins themes provide CSS color variables. Instead of trying to rely on `currentColor`, use the default text color (`var(--text-color)`) and the default background color (`var(--background)`). This should allow negative/inverse text to render appropriately no matter what theme mode is used. Signed-off-by: James Knight <[email protected]>
- Loading branch information
Showing
2 changed files
with
32 additions
and
80 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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