Closed jamesmockett closed 1 month ago
Moving to blocked as #12063 needs updating first. I'm talking to Charlotte to co-ordinate.
On further investigation we've discovered that Source v4 introduced a regression that prevents styles overrides added with the css
prop from being applied. This has broken dark mode theming in a handful of places.
Source officially supports overrides via the cssOverrides
and theme
props, but never officially supported the css
prop which is added by Emotion. Nonetheless, it's used in a number of places in the codebase.
I've spoken to the end to end team who are looking into why the behaviour as changed, but as this was never supported it seems like the best way forward is to replace any use of css
on Source components with cssOverrides
. The difficulty is in finding all instances given the size of the codebase. Many are covered by Chromatic, but there may be instances that are not and get overlooked.
This should be unblocked now that https://github.com/guardian/dotcom-rendering/pull/12218 has been merged
Moving back into blocked for the moment as this requires an update to braze-components
which has Source as a peer dependency and has to be updated to account for the breaking changes introduced in v7 and 8.
Charlotte has an open PR (#12063) to bump Source from
1.0.3
to6.1.0
as this includes new typography presets that are required for work on Fairground. There are a number of breaking changes due to the leap in versions which this PR addresses.Alex has opened a follow-on PR to bump Source to
7.0.0
(#12145) which has been subsequently released. This removes the deprecated typography API which is still referenced in a handful of places in the codebase. These need to be updated in order to update to the latest version of Source and any future versions.DCR
AR