You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: [BpkPanel] Add bgColor prop with surface color support (#4220)
* feat: [BpkPanel] Add bgColor prop with surface color support
Add a bgColor prop to BpkPanel that supports all design system surface
colours, following the same pattern as BpkText's color prop.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor: [BpkPanel] Improve storybook examples with keyline comparison and context backgrounds
Show each bgColor variant with and without keyline side by side.
Use dark background for surfaceLowContrast and gradient background
for surfaceTint to demonstrate semi-transparency.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor: Extract surface colors into shared bpk-react-utils and bpk-mixins
Move surface color definitions from BpkPanel into shared locations so they
can be reused by other components. BpkPanel re-exports as PANEL_BG_COLORS
for backwards compatibility.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: Add Record type to rowStyleForBg to fix TS7053 indexing error
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: Restore simple Default story and add cross-reference comments
- Restore DefaultExample as the Default storybook story for simplest usage
- Add BackgroundColors as a separate story for the surface color showcase
- Extract common row styles using CSS Modules composes
- Add sync comments between SCSS and JS surface color definitions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: Use Partial<Record<PanelBgColor, string>> for rowStyleForBg type
Tightens the type of the partial bg-to-style mapping in examples so
keys are constrained to valid PanelBgColor values.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments