Configurable background and text colour for ContentOverview and Testimonial#1487
Configurable background and text colour for ContentOverview and Testimonial#1487koechkevin wants to merge 2 commits into
Conversation
Mirror the OpportunitiesList pattern: the block exposes backgroundColor and textColor via colorSettingsField (defaults #fff / #000), and the component applies them on its root Box (background + color), replacing the hard-coded white background.
Mirror the OpportunitiesList/ContentOverview pattern: the block exposes backgroundColor and textColor via colorSettingsField (defaults #fff / #000), and the component applies them on its root Box (background + color), replacing the hard-coded white background.
|
@claude review |
|
Claude finished @koechkevin's task in 1m 43s —— View job Code Review
Overall the approach is clean and consistent with the
|
Summary
Extends the OpportunitiesList colour pattern to the ContentOverview and Testimonial blocks, so editors can set the section background and text colour from the CMS instead of relying on hard-coded values.
Changes
Each block now exposes
backgroundColorandtextColorvia the sharedcolorSettingsField(defaults#fff/#000, rendered by the nativeColourPicker), and each component applies them on its rootBox(background+color):payload/blocks/ContentOverview.jscolorSettingsField(bg#fff, text#000)components/ContentOverview/ContentOverview.jsbackgroundColor/textColor; apply on rootBox, replacing hard-codedcommon.whitecomponents/ContentOverview/ContentOverview.snap.jsBoxclass hash)payload/blocks/Testimonial.jscolorSettingsField(bg#fff, text#000)components/Testimonial/Testimonial.jsbackgroundColor/textColor; apply on rootBox, replacing hard-coded#fffScreenshots
Testing
eslintclean on all changed files.