Commit 7fe15a0
authored
Update EditorPanel to honour font size changes (#1277)
In #1264 we added a `typography.style-1()` to the `.cm-scroller` class
in the EditorPanel css, which unwittingly prevented font sizes from
taking effect.
This PR reverts that, but also tidies up the styling to use Design
System typography styles instead, so line spacing etc goes with it.
Also removes the `$space-0-5` var in favour of the Design System vars.
e.g.
Small:
<img width="841" height="649" alt="image"
src="https://github.com/user-attachments/assets/394b807d-a051-427c-b950-afbce7906a7c"
/>
Medium:
<img width="857" height="596" alt="image"
src="https://github.com/user-attachments/assets/ea3453ea-7f86-4bd1-a36e-6e7243706928"
/>
Large:
<img width="861" height="496" alt="image"
src="https://github.com/user-attachments/assets/3025bc83-eb31-429e-bff2-9c9eeebe1ea4"
/>1 parent 9b6710b commit 7fe15a0
2 files changed
+10
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | | - | |
30 | | - | |
31 | 28 | | |
32 | 29 | | |
33 | 30 | | |
| |||
37 | 34 | | |
38 | 35 | | |
39 | 36 | | |
40 | | - | |
41 | | - | |
| 37 | + | |
| 38 | + | |
42 | 39 | | |
43 | 40 | | |
44 | 41 | | |
45 | 42 | | |
46 | 43 | | |
47 | | - | |
| 44 | + | |
48 | 45 | | |
49 | 46 | | |
50 | 47 | | |
51 | | - | |
| 48 | + | |
52 | 49 | | |
53 | 50 | | |
54 | 51 | | |
55 | | - | |
| 52 | + | |
56 | 53 | | |
57 | 54 | | |
58 | 55 | | |
| |||
0 commit comments