@justeattakeaway/pie-css 0.28.1 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -306,6 +306,16 @@
|
|
|
306
306
|
line-height: calc(var(--dt-font-caption-strong-line-height) * 1px);
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
+
.u-font-caption-strong-italic {
|
|
310
|
+
font-family: var(--dt-font-caption-strong-italic-family);
|
|
311
|
+
font-weight: var(--dt-font-caption-strong-italic-weight);
|
|
312
|
+
margin-block-end: calc(var(--dt-font-caption-strong-italic-paragraph) * 1px);
|
|
313
|
+
font-style: var(--dt-font-caption-strong-italic-font-style);
|
|
314
|
+
font-variation-settings: "slnt" -20;
|
|
315
|
+
font-size: calc(var(--dt-font-caption-strong-italic-size) * 1px);
|
|
316
|
+
line-height: calc(var(--dt-font-caption-strong-italic-line-height) * 1px);
|
|
317
|
+
}
|
|
318
|
+
|
|
309
319
|
.u-font-caption-strong-link {
|
|
310
320
|
font-family: var(--dt-font-caption-strong-link-family);
|
|
311
321
|
font-weight: var(--dt-font-caption-strong-link-weight);
|
|
@@ -221,6 +221,7 @@ Caption strong utilities are for bold captions.
|
|
|
221
221
|
| Class | Use Case |
|
|
222
222
|
| --- | --- |
|
|
223
223
|
| `.u-font-caption-strong` | caption bold/strong |
|
|
224
|
+
| `.u-font-caption-strong-italic` | caption italic bold/strong |
|
|
224
225
|
|
|
225
226
|
### Caption Strong Link
|
|
226
227
|
|
|
@@ -322,6 +323,6 @@ If the typography utilities aren't applying:
|
|
|
322
323
|
|
|
323
324
|
If fonts aren't displaying correctly:
|
|
324
325
|
|
|
325
|
-
1. Ensure you've set up the JETSansDigital font as described in the Typography setup guide
|
|
326
|
+
1. Ensure you've set up the JETSansDigital font as described in the [Typography setup guide](https://webc.pie.design/?path=/docs/introduction-typography--docs)
|
|
326
327
|
2. Check that font files are loading correctly
|
|
327
328
|
3. Verify font-face declarations are correct
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justeattakeaway/pie-css",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"description": "A styling library that provides both a shared collection of ready to use CSS styles to be used across JET web front-ends, and SCSS-based style helpers for our PIE Web Component library.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "run -T ts-node ./buildCss.ts && run -T sass --load-path=../../../node_modules scss/_internal/typography.scss dist/helpers/typography.css --no-source-map && run -T sass --load-path=../../../node_modules scss/_internal/radio.scss dist/components/radio.css --no-source-map",
|
|
25
|
+
"generate:typography-docs": "node scripts/generate-typography-docs.js",
|
|
25
26
|
"lint:scripts": "run -T eslint .",
|
|
26
27
|
"lint:scripts:fix": "yarn lint:scripts --fix",
|
|
27
28
|
"lint:style": "run -T stylelint ./**/*.{css,scss}",
|
|
@@ -7,7 +7,7 @@ $typography-names: font-heading-xs font-heading-s font-heading-m font-heading-l
|
|
|
7
7
|
font-body-s font-body-s-link font-body-l font-body-l-link
|
|
8
8
|
font-body-strong-s font-body-strong-s-link
|
|
9
9
|
font-body-strong-l font-body-strong-l-link
|
|
10
|
-
font-caption font-caption-link font-caption-strong font-caption-strong-link;
|
|
10
|
+
font-caption font-caption-link font-caption-strong font-caption-strong-italic font-caption-strong-link;
|
|
11
11
|
|
|
12
12
|
@each $name in $typography-names {
|
|
13
13
|
.u-#{$name} {
|