[Dark Mode] ToDo Notifications containing code block text render in light mode
Summary
When GitLab is set to use Dark Mode, the application fails to render To-Do's containing preformatted text in the same theme. Instead it defaults to Light Mode (or some other . . . lesser mode
Steps to reproduce
- Generate a todo containing the following text:
- Tag yourself and look for the item in your todos.
Example Project
What is the current bug behavior?
The current behavior allows for preformatted text to be rendered in light mode on the todo page when the user has specified "Dark Mode" in the preferences pane.
What is the expected correct behavior?
ToDo's containing preformatted text should be rendered in dark mode, light fg on dark bg.
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: \`sudo gitlab-rake gitlab:env:info\`) (For installations from source run and paste the output of: \`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production\`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:check SANITIZE=true`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true`) (we will only investigate if the tests are passing)
Possible fixes
Edited by Greg Alfaro