- 
                Notifications
    You must be signed in to change notification settings 
- Fork 10
fix: button debt #1262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Draft
      
      
            maxelkins
  wants to merge
  32
  commits into
  main
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
fix-button-debt
  
      
      
   
  
    
  
  
  
 
  
      
    base: main
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          
                
     Draft
            
            fix: button debt #1262
Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    - 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
      
        
      
      
  
    3 tasks
  
    
  maxelkins 
      added a commit
      that referenced
      this pull request
    
      Oct 30, 2025 
    
    
      
  
    
      
    
  
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" />
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Warning
WIP - Relys on #1261 for initial design system update
Still to be done:
Summary of Button changes
✨ Summary partially generated with Copilot but manually corrected and checked
A major refactoring effort focused on migrating from legacy custom buttons to Design System (DS) buttons throughout the codebase. Here are the key changes:
🔄 Button Migration & Refactoring (Major Theme)
The most significant change is the replacement of custom button components with standardised Design System buttons:
🗂️ File Structure Changes
InternalStyles.scssButton.scss,DesignSystemButton.scss)🎨 Styling Updates
📦 Dependencies & Build
@raspberrypifoundation/design-system-react🏗️ Component Architecture Improvements
buttonText/onClickHandlertotext/onClickfilltofullWidthfor consistency🧹 Code Quality
🎯 Key Benefits of This Refactoring
🔧 Technical Details
Key Prop Changes:
Import Changes:
This migration ensures the entire UI follows consistent design patterns while improving code maintainability and user experience.