Commit f6f6727
authored
build: update design system to v2.7.0 (#1261)
Closes
RaspberryPiFoundation/digital-editor-issues#968
## Summary
Update to the latest design system to take advantage of new components
and features.
## What's been done?
- Incrementally updated - see commits
- Ran all tests at each commit
- Followed design system [updating guide for
v2+](https://github.com/RaspberryPiFoundation/design-system-react/blob/main/UPDATING.md)
- Fixed any breaking changes - only 1 (see commits details)
- Added material icon font to host (web component preview page) since
the design system depends on this for some components.
## Screenshots
<img width="1422" height="965" alt="Screenshot 2025-10-29 at 09 33 16"
src="https://github.com/user-attachments/assets/919b6bb0-ba72-49ef-a260-48605227755d"
/>
<img width="501" height="754" alt="Screenshot 2025-10-29 at 09 33 26"
src="https://github.com/user-attachments/assets/52310fec-2c66-4602-9301-182c3a114f88"
/>
<img width="1200" height="889" alt="Screenshot 2025-10-29 at 09 33 53"
src="https://github.com/user-attachments/assets/bc3c294c-f830-4dcc-98ce-764165f473c5"
/>
## Issues to be solved in another PR
- Some styles appear to be broken/missing
- **Note this is only when "use_editor_styles" isn't true**
- This is an existing
[issue](#1195).
- There are also some issues with Design System components not looking
correct. This is because editor-ui is overriding design-system-core
styles via classes or global selectors (e.g. `button`) rather than
overriding custom properties - which would normally avoid most breaking
changes. Largely "core breaking component changes" only affect upstream
packages (react/rails).
**Suggested tasks:**
- [ ] Ensure all editor CSS custom properties have a fallback, so that a
theme isn't required
([Issue](#1195))
- [ ] Migrate to using design system buttons - [See
PR](#1262).
- [ ] Migrate to theming using Design System component via the CSS
custom properties
<img width="1263" height="923" alt="Screenshot 2025-10-29 at 09 39 38"
src="https://github.com/user-attachments/assets/39c88da0-fad4-4648-8431-22a09366211a"
/>1 parent 618aea3 commit f6f6727
File tree
6 files changed
+39
-63
lines changed- src
- assets/stylesheets
- utils
6 files changed
+39
-63
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | | - | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| |||
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
55 | | - | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| |||
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
92 | | - | |
| 96 | + | |
93 | 97 | | |
94 | 98 | | |
95 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2916 | 2916 | | |
2917 | 2917 | | |
2918 | 2918 | | |
2919 | | - | |
2920 | | - | |
2921 | | - | |
| 2919 | + | |
| 2920 | + | |
| 2921 | + | |
2922 | 2922 | | |
2923 | 2923 | | |
2924 | | - | |
| 2924 | + | |
2925 | 2925 | | |
2926 | 2926 | | |
2927 | 2927 | | |
2928 | | - | |
2929 | | - | |
2930 | | - | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
2931 | 2931 | | |
2932 | | - | |
2933 | | - | |
2934 | | - | |
2935 | | - | |
2936 | | - | |
2937 | | - | |
| 2932 | + | |
| 2933 | + | |
2938 | 2934 | | |
| 2935 | + | |
| 2936 | + | |
2939 | 2937 | | |
2940 | | - | |
| 2938 | + | |
| 2939 | + | |
| 2940 | + | |
| 2941 | + | |
| 2942 | + | |
| 2943 | + | |
2941 | 2944 | | |
2942 | 2945 | | |
2943 | 2946 | | |
| |||
2959 | 2962 | | |
2960 | 2963 | | |
2961 | 2964 | | |
2962 | | - | |
2963 | | - | |
| 2965 | + | |
2964 | 2966 | | |
2965 | 2967 | | |
2966 | 2968 | | |
| |||
3301 | 3303 | | |
3302 | 3304 | | |
3303 | 3305 | | |
3304 | | - | |
3305 | | - | |
3306 | | - | |
3307 | | - | |
3308 | | - | |
3309 | | - | |
3310 | | - | |
3311 | 3306 | | |
3312 | 3307 | | |
3313 | 3308 | | |
| |||
6598 | 6593 | | |
6599 | 6594 | | |
6600 | 6595 | | |
6601 | | - | |
| 6596 | + | |
6602 | 6597 | | |
6603 | 6598 | | |
6604 | 6599 | | |
| |||
14033 | 14028 | | |
14034 | 14029 | | |
14035 | 14030 | | |
14036 | | - | |
14037 | | - | |
14038 | | - | |
14039 | | - | |
14040 | | - | |
14041 | | - | |
14042 | | - | |
14043 | 14031 | | |
14044 | 14032 | | |
14045 | 14033 | | |
| |||
16987 | 16975 | | |
16988 | 16976 | | |
16989 | 16977 | | |
16990 | | - | |
| 16978 | + | |
16991 | 16979 | | |
16992 | 16980 | | |
16993 | 16981 | | |
| |||
17186 | 17174 | | |
17187 | 17175 | | |
17188 | 17176 | | |
17189 | | - | |
17190 | | - | |
17191 | | - | |
17192 | | - | |
17193 | | - | |
17194 | | - | |
17195 | | - | |
17196 | | - | |
17197 | | - | |
17198 | | - | |
17199 | | - | |
17200 | | - | |
17201 | | - | |
17202 | 17177 | | |
17203 | 17178 | | |
17204 | 17179 | | |
| |||
17223 | 17198 | | |
17224 | 17199 | | |
17225 | 17200 | | |
17226 | | - | |
17227 | | - | |
17228 | | - | |
17229 | | - | |
17230 | | - | |
17231 | | - | |
17232 | | - | |
17233 | | - | |
17234 | | - | |
17235 | | - | |
17236 | | - | |
17237 | 17201 | | |
17238 | 17202 | | |
17239 | 17203 | | |
| |||
17316 | 17280 | | |
17317 | 17281 | | |
17318 | 17282 | | |
17319 | | - | |
| 17283 | + | |
17320 | 17284 | | |
17321 | 17285 | | |
17322 | 17286 | | |
| |||
0 commit comments