Skip to content

refactor: bump design system and refactor theme styles - #1604

Merged
maxelkins merged 1 commit into
mainfrom
button-theme-shadow-dom
Aug 20, 2026
Merged

refactor: bump design system and refactor theme styles#1604
maxelkins merged 1 commit into
mainfrom
button-theme-shadow-dom

Conversation

@maxelkins

@maxelkins maxelkins commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

🤖 Created with AI assistance
👨‍💻 Edited, reviewed and steered by @maxelkins

Summary

Bumps @raspberrypifoundation/design-system-react to v2.10.3 (design-system-core v2.4.9), which moves Button's CSS custom properties onto :root, :host so they're reachable by inheritance. Simplifies our dark-theme button overrides in InternalStyles.scss to rely on that inheritance instead of redeclaring every token on .rpf-button itself.

Changes

  • Bump @raspberrypifoundation/design-system-react from ^2.10.2 to ^2.10.3.
  • Move the dark-theme Button default token overrides from .rpf-button up to .--dark directly, now that they cascade via inheritance.
  • Keep the :disabled and .rpf-button--secondary overrides scoped to their own selectors, since those are conditional on state/variant rather than defaults.

@jamiebenstead jamiebenstead left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@maxelkins
maxelkins merged commit 7a387b8 into main Aug 20, 2026
11 checks passed
@maxelkins
maxelkins deleted the button-theme-shadow-dom branch August 20, 2026 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants