Skip to content

Conversation

@maxelkins
Copy link
Contributor

@maxelkins maxelkins commented Oct 17, 2025

Closes https://github.com/RaspberryPiFoundation/digital-editor-issues/issues/968

Summary

Update to the latest design system to take advantage of new components and features.

Done so far

  • Incrementally updated - see commits
  • Ran all tests at each commit
  • Followed design system updating guide for v2+
  • Fixed any breaking changes - only 1 (see commits details)
  • Added material icon font to host (web component preview page)

Issues / To do

  • Some styles appear to be broken/missing
  • (note this is only when "use_editor_styles" isn't true, which currently has missing styles)
  • I suspect this is because editor-ui is overriding design-system-core classes style rather than overriding custom properties - which would normally avoid most breaking changes. Largely "core breaking component changes" only affect upstream packages (react/rails).
Screenshot 2025-10-17 at 11 20 17

To get this out...

Quick fix:

  • Modfiy default theming to fix broken styling (that isnt already missing)

Ideally:

  • Check core changelog for breaking changes and compare that with design system overrides (most likely the button)
  • Migrate to theming using the css custom properties
  • Use of material icons font broken in web component - existing issue
  • Migrate to using design system buttons - See PR.

- 2.0.0 uses vite and packages core, so that dep can removed.
- Link to core style does however need to be added to the app, following the update guide for the design system.
- TextEncoder/TextDecoder was not set up in jest and this was causing some design system component to fail tests.
- No buttons using href prop so no changes needed
@maxelkins maxelkins temporarily deployed to previews/1261/merge October 17, 2025 10:18 — with GitHub Actions Inactive
@maxelkins maxelkins mentioned this pull request Oct 17, 2025
12 tasks
@maxelkins maxelkins changed the title Update design system to v2.6.2 build: update design system to v2.6.2 Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant