-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump @guardian/source
to 8.0.0
#12342
base: main
Are you sure you want to change the base?
Conversation
@guardian/source
and @guardian/source-development-kitchen
to 8.0.0
@guardian/source
to 8.0.0
Size Change: -23.4 kB (-2.5%) Total Size: 915 kB
ℹ️ View Unchanged
|
2cd8439
to
32d6377
Compare
3e14efc
to
2f3ccb3
Compare
@@ -105,7 +105,7 @@ const MetaGridByline = ({ | |||
padding-bottom: 0px; | |||
} | |||
|
|||
address > div > span > svg:first-of-type { | |||
address > div > span > div:first-of-type { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The DottedLines
component in Source Development Kitchen has been updated to be rendered with CSS rather than as an SVG, therefore there's no longer an svg
element to target here. This selector feels very fragile and the spacing would be better applied elsewhere, but I've left as is for now and simply updated the element it's targeting.
2f3ccb3
to
bcb232c
Compare
What does this change?
Bumps
@guardian/source
from6.0.0
to8.0.0
and@guardian/source-development-kitchen
from5.0.0
to8.0.0
.These releases remove the deprecated typography API and disallow direct use of Emotion's
css
prop. Remaining uses of the typography API have been replaced with typography presets, and incorrect usage of thecss
prop replaced with the supportedcssOverrides
prop.This supersedes #12145
Source 6.1.0–8.0.0 release notes
8.0.0
Major Changes
33608e2: Disallows direct use of Emotion's
css
prop on Source components.If you need to override the internal styling of Source components, use
cssOverrides
instead.7.0.1
Patch Changes
7.0.0
Major Changes
238dfd3: Removes deprecated typography API.
In
@guardian/source-foundations@14.2.0
(2024-04-07), we added new web typography presets to standardise on the typographic language used by Design, and deprecated the old typography API.This release removes that old API, in order to simplify the ongoing maintenance of the library.
The following exports have been removed:
titlepiece
headline
body
textSans
titlepieceSizes
headlineSizes
bodySizes
textSansSizes
remTitlepieceSizes
remHeadlineSizes
remBodySizes
remTextSansSizes
fonts
fontWeights
lineHeights
bodyObjectStyles
headlineObjectStyles
textSansObjectStyles
titlepieceObjectStyles
along with the following
type
exports:ScaleUnit
Category
LineHeight
FontWeight
FontStyle
FontWeightDefinition
Option
TypographySizes
TypographyStyles
TitlepieceSizes
HeadlineSizes
BodySizes
TextSansSizes
Fs
FontScaleFunction
FontScaleFunctionStr
FontScaleArgs
If you cannot map existing uses of the old API to the new presets, please check which preset you should use with a designer.
447e6b6: Applies consistent spacing around checkboxes and radio buttons by removing conditional styles and using padding to ensure minimum height of 44px.
The external padding is now consistent regardless of the presence of a label and / or supporting text, and removes any inconsistency when these elements are stacked vertically.
Checkboxes and radio buttons are also now aligned with the first line of text when labels wrap on to multiple lines.
7805d16: Brings
remSize
,remIconSize
,remHeight
andremWidth
into line withremSpace
, by changing their values from anumber
(of rems) to astring
that ends withrem
units.pxToRem
also now returns a string withrem
units, rather than anumber
of rems.The sizes haven't changed, only the way they are exported.
Before
After
If you have been performing calculations with the old number values in JS, you can use the CSS
calc
function instead:Before
After
Patch Changes
69ecc3f: Moves design tokens into
@guardian/source
itself.Allows us to calculate
@guardian/source/foundations
values during build, rather than at the point of consumption, which relieves user's devices of this overhead and means the design tokens JSON will no longer be included in consumer's bundles.6.1.0
Minor Changes
headlineBold15
,headlineLight15
,headlineLightItalic15
,headlineMedium15
andheadlineMediumItalic15
to the typography presetsSource Development Kitchen 6.0.0–8.0.0 release notes
8.0.0
Patch Changes
7.1.0
Minor Changes
ticker
component7.0.1
Patch Changes
7.0.0
Major Changes
Updated peer dependency to
@guardian/source@7.0.0
6.0.0
Major Changes
DottedLines
to render pattern with CSS rather than SVGWhy?
DCR has fallen several major versions behind. This brings us up-to-date and allows use of features and bug fixes added in later releases.