-
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
+167
−774
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
5 tasks
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.scss
Button.scss
,DesignSystemButton.scss
)🎨 Styling Updates
📦 Dependencies & Build
@raspberrypifoundation/design-system-react
🏗️ Component Architecture Improvements
buttonText
/onClickHandler
totext
/onClick
fill
tofullWidth
for 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.