Some "Theme" / "Monochrome" components in code examples aren't very visible #1274
Labels
good first issue
A good starter issue if you haven't contributed to the ICDS before
type: bug 🐛
An unexpected problem or unintended behaviour
Milestone
Summary of the bug
We've given components with
theme="dark"
in "Theme" / "Monochrome" code examples a dark background to make them visible in light mode. However, thetheme="light"
examples don't have a light background when dark mode is turned on on the website, so they are quite difficult to see / there is not enough contrast.🪜 How to reproduce
theme="dark"
are quite difficult to see📸 Screenshots or code
🧐 Expected behaviour
I think it would be best if the components with
theme="light"
have a light background when in dark mode, just like those withtheme="dark"
have a dark background when in light mode.Additional info
There are probably a few component pages for which this is an issue so it might involve looking through all of them to check. However, it's only an issue when we are showing two variants in one example i.e. when the dark background in light mode is only behind one of them, e.g.:
The text was updated successfully, but these errors were encountered: