Skip to content

Commit 2322484

Browse files
committed
Update EditorPanel to honour font size changes
1 parent 9b6710b commit 2322484

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/assets/stylesheets/EditorPanel.scss

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
@use "./rpf_design_system/spacing" as *;
2-
@use "./rpf_design_system/font-size" as *;
3-
@use "../../../node_modules/@raspberrypifoundation/design-system-core/scss/mixins/typography";
1+
@forward '@raspberrypifoundation/design-system-core/scss/properties/spacing';
2+
@use '@raspberrypifoundation/design-system-core/scss/mixins/typography' as typography;
43

54
// Scrollbar-width is needed from scrollbar to show in Chrome
65
.editor-wrapper {
@@ -26,8 +25,6 @@
2625
}
2726

2827
.cm-scroller {
29-
@include typography.style-1();
30-
3128
// Needed here for horizontal scroll
3229
overflow: auto;
3330
scrollbar-width: thin;
@@ -37,22 +34,22 @@
3734

3835
.cm-content {
3936
flex: 1;
40-
padding-block-start: $space-0-5;
41-
margin-inline-end: $space-0-5;
37+
padding-block-start: var(--space-0-5);
38+
margin-inline-end: var(--space-0-5);
4239
}
4340
}
4441
}
4542

4643
&--small {
47-
@include font-size-1(regular);
44+
@include typography.style-1();
4845
}
4946

5047
&--medium {
51-
@include font-size-1-5(regular);
48+
@include typography.style-1-5();
5249
}
5350

5451
&--large {
55-
@include font-size-2(regular);
52+
@include typography.style-2();
5653
}
5754
}
5855

0 commit comments

Comments
 (0)