You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The way AR did dark mode made it possible to only override source component styling for in dark mode (e.g in ClickToView, we only add button styles for darkmode
In DCR we require both light and dark colour definitions.
This was fine for the button, as the light palette was exposed from source, so if that ever updates in source, we should get the updated values in DCR.
However for other source components we might not get that benefit if the colours haven't been exported.
We could also end up with a lot of unnecessary duplication as we could feasibly end up redefining the light mode colours for a lot of the source components.
We should think about this, and decide if we're ok with the duplication, or if there are any other solutions
The text was updated successfully, but these errors were encountered:
## What are you changing?
- Refactor `Tabs` so it receives an optional `theme` object which is
used to define relevant custom properties which drive the colour of the
component
- Remove CSS Overrides as we enable consumers to override every single
colour
- Add stories to demonstrate usage
- Refactors `Tabs` with some destructuring, but this can be kept to a
different PR 0a75669
## Why?
- This enables us to use Callouts with dark mode in dotcom-rendering:
guardian/dotcom-rendering#9277
- Proposal for an answer to:
guardian/dotcom-rendering#9333
The way AR did dark mode made it possible to only override source component styling for in dark mode (e.g in ClickToView, we only add button styles for darkmode
In DCR we require both light and dark colour definitions.
This means for ClickToView in DCR when we overrode the values for dark mode, we also had to override the values for light mode.
This was fine for the button, as the light palette was exposed from source, so if that ever updates in source, we should get the updated values in DCR.
However for other source components we might not get that benefit if the colours haven't been exported.
We could also end up with a lot of unnecessary duplication as we could feasibly end up redefining the light mode colours for a lot of the source components.
We should think about this, and decide if we're ok with the duplication, or if there are any other solutions
The text was updated successfully, but these errors were encountered: