Skip to content

Commit

Permalink
Update source changeset (#1645)
Browse files Browse the repository at this point in the history
  • Loading branch information
sndrs authored Aug 13, 2024
1 parent 7805d16 commit 019b69a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .changeset/purple-bags-sell.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
'@guardian/source': major
---

Brings `remSize`, `remIconSize`, `remHeight` and `remWidth` into line with `remSpace`, by changing their values from numbers (of rems) to strings with `rem` units.
Brings `remSize`, `remIconSize`, `remHeight` and `remWidth` into line with `remSpace`, by changing their values from a `number` (of rems) to a `string` that ends with `rem` units.

`pxToRem` also now returns a string with `rem` units, rather than a `number` of rems.

_The sizes haven't changed, only the way they are exported._

### Before

```js
const style = `
top: ${pxToRem(10)}rem;
bottom: ${remHeight.ctaSmall}rem;
`;
```
Expand All @@ -19,6 +22,7 @@ const style = `

```js
const style = `
top: ${pxToRem(10)};
bottom: ${remHeight.ctaSmall};
`;
```
Expand Down

0 comments on commit 019b69a

Please sign in to comment.