fix: download button styles#1475
Merged
Merged
Conversation
teal theme style remains when `user_editor_styles` is true due to global theming
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adjusts how the app’s download button is rendered and tweaks secondary button styling overrides to address visual issues with the download button in the UI.
Changes:
- Replace
DesignSystemButtonusage with a direct@raspberrypifoundation/design-system-reactButtoninDownloadButton. - Remove some
border-coloroverrides for.rpf-button--secondaryin dark/light themes. - Minor SCSS formatting/indentation cleanup.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/components/DownloadButton/DownloadButton.jsx | Switches download button rendering to the design-system Button directly (no wrapper). |
| src/assets/stylesheets/DesignSystemButton.scss | Updates secondary button theme overrides by removing specific border-color customizations. |
Comments suppressed due to low confidence (1)
src/components/DownloadButton/DownloadButton.jsx:83
- Switching from
DesignSystemButtonto the raw design-system<Button>drops wrapper behavior that the rest of the codebase relies on (always adding the basebtnclass, and mappingfilltorpf-button--fill/rpf-button--fit; seesrc/components/DesignSystemButton/DesignSystemButton.jsx). As a result,fillpassed byDownloadPanelwill no longer affect layout, and anyDownloadButtonusage that doesn’t includebtninclassName(e.g. ProjectsPanel) will render with different base styles. Consider either keepingDesignSystemButton, or replicating the wrapper’s className logic locally (or updating call sites to include the expected classes / usefullWidth).
return (
<Button
className={className}
onClick={onClickDownload}
text={buttonText}
icon={Icon ? <Icon /> : null}
type={type}
{...otherProps}
/>
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
jamiebenstead
approved these changes
May 20, 2026
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
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.
Closes https://github.com/RaspberryPiFoundation/digital-editor-issues/issues/1414
Summary
DownloadButtonto use the Design System Buttonuser_editor_stylesis true due to global themingScreenshots
The hover style when false is not quite right, but this should be tackled in https://github.com/RaspberryPiFoundation/digital-editor-issues/issues/1298 its too big of an issue here.
use_editor_style= falseuse_editor_style= true