Skip to content

Commit fe5c2ec

Browse files
committed
fix: issue with stack snapshots
chore: update migration for font changes chore: update snapshots
1 parent fc2bbd4 commit fe5c2ec

File tree

6 files changed

+23
-5
lines changed

6 files changed

+23
-5
lines changed
109 Bytes
Loading
107 Bytes
Loading
109 Bytes
Loading

packages/foundations/scss/defaults/default-required.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ html {
7070
we overwrite this for all elements to pass the correct sizes even for elements
7171
which have a default font-size/line-height set
7272
*/
73-
font-size: inherit;
74-
line-height: inherit;
75-
font-family: inherit;
73+
font: inherit;
7674

7775
/* Use this to get similar fonts in all browser */
7876
-webkit-font-smoothing: antialiased;

packages/migration/src/migration/v1.0.0-v2.0.0.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,27 @@ export const v100_v200: ReplaceInFileConfig[] = [
1111
from: /border-height/g,
1212
to: 'border-width'
1313
},
14+
/* Font changes */
15+
{
16+
files: '',
17+
from: /db-type-body-line-height-(3xs|2xs|xs|sm|md|lg|xl|2xl|3xl)/g,
18+
to: '/* TODO: Use `font: db-type-body-xx` for font-size and line-height instead */'
19+
},
20+
{
21+
files: '',
22+
from: /db-type-body-font-size-(3xs|2xs|xs|sm|md|lg|xl|2xl|3xl)/g,
23+
to: '/* TODO: Use `font: db-type-body-xx` for font-size and line-height instead */'
24+
},
25+
{
26+
files: '',
27+
from: /db-type-headline-line-height-(3xs|2xs|xs|sm|md|lg|xl|2xl|3xl)/g,
28+
to: '/* TODO: Use `font: db-type-headline-xx` for font-size and line-height instead */'
29+
},
30+
{
31+
files: '',
32+
from: /db-type-headline-font-size-(3xs|2xs|xs|sm|md|lg|xl|2xl|3xl)/g,
33+
to: '/* TODO: Use `font: db-type-headline-xx` for font-size and line-height instead */'
34+
},
1435
/* Angular changes */
1536
{
1637
files: '',

showcases/showcase-styles.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,8 @@ main .db-header {
168168
padding: var(--db-spacing-fixed-3xs) var(--db-spacing-fixed-xs);
169169
justify-content: center;
170170
align-items: center;
171-
font-size: var(--db-type-body-font-size-2xs);
171+
font: var(--db-type-body-2xs);
172172
font-weight: 700;
173-
line-height: var(--db-type-body-line-height-2xs);
174173

175174
a {
176175
text-decoration: none;

0 commit comments

Comments
 (0)