When assigning the CSS-class has-text-black (or in general, any has-text-*) to an article, headlines in that article do not receive that color when the page is in darkmode, but instead are displayed in the default dark mode headline color. This is problematic if it is used in combination of a light color for this article's background color.
Steps to reproduce
Create an article and assign the class has-text-black to it
Create a content element that has a headline in that article
View the page in dark mode
The root cause of this issue seems to be that the h2 color CSS rule in nature_dark_mode.scss takes precedence over the has-text-black rule, as one can see below:
Expected behavior
I would expect has-text-* and has-background-* classes to consistently influence all elements they are applied to, independent of dark or light mode.
Bug description
When assigning the CSS-class
has-text-black
(or in general, anyhas-text-*
) to an article, headlines in that article do not receive that color when the page is in darkmode, but instead are displayed in the default dark mode headline color. This is problematic if it is used in combination of a light color for this article's background color.Steps to reproduce
has-text-black
to itThe root cause of this issue seems to be that the h2 color CSS rule in
nature_dark_mode.scss
takes precedence over thehas-text-black
rule, as one can see below:Expected behavior
I would expect
has-text-*
andhas-background-*
classes to consistently influence all elements they are applied to, independent of dark or light mode.Environment