Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with hljs-subst class in the css #933

Open
a40yostudent opened this issue Nov 3, 2023 · 1 comment
Open

Issue with hljs-subst class in the css #933

a40yostudent opened this issue Nov 3, 2023 · 1 comment

Comments

@a40yostudent
Copy link
Contributor

Describe the bug

Inside pre and code tags there's some text that is supposed to be white when the theme is dark, and black when the theme is clear. This is not working as expected because it does not follow the choice made by the user through the theme switcher button on the website, but rather it follows the operating system theme preference.

This text is styled with the css class hljs-subst.

The issue is more clear when the OS is set to dark and the website theme is set to clear, and vice-versa.

To Reproduce

Steps to reproduce the behavior:

  1. Use macOS Sonoma 14.0
  2. Set the dark theme for example
  3. Open a page of docs.vapor.codes containing some code in pre and code tags
  4. Set the website theme switcher to clear, in the same example of point 2.
  5. The code supposed to be colored in black is white instead, following the OS theme.

Expected behavior

The code should be clearly visible by following the website theme

Environment

  • OS version: macOS Sonoma 14.0
  • Browser Version: Safari 17.0

Additional context

Not yet tested on other platforms / browsers.

@a40yostudent
Copy link
Contributor Author

Issue
Screenshot 2023-11-03 alle 11 26 43

Expected
Screenshot 2023-11-03 alle 11 26 58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant