Open alykat opened 3 months ago
I've added dark-mode styles, wrapped in a media query (prefers-color-scheme: dark)
, in seed.less
on the 5-dark-mode
branch.
The media query may not be a good idea because NPR is not yet consistently supporting dark mode across all of its products. So the embed may appear on a page that doesn't support dark mode.
Next step: Ask the mobile team how they'd handle an element that supports dark mode, on a page that doesn’t, on a device/browser that is in dark mode.
Worst-case solution: Put a white background on the embed.
Not looking great in the android app (only place we're using dark mode right now).
For link styles, draw inspiration from how links are treated elsewhere on the site in dark mode.
One thing to look into: If the embed supports dark mode but the surrounding page does not, what happens?