Problem/Motivation
#3213112: Add a specific class when having sections with background color, image, or video option
Needs to add a specific class when having background image option.
Having no custom styling selector for sections
to have advance styling for section with background.
bg-image, bg-color, bg-video
Steps to reproduce
Given that a Landing page with Layout Builder had number of sections
And number of sections do have abackground color
And some sections have abackground imageorbackground video
When trying to select and custom style all sections withBG colorsonly
And same forBG imagesorvideos
But with other styling
Then no direct way to select selections withBG colors, orBG image
Proposed resolution
Have the same as in the following issue #3213112: Add a specific class when having sections with background color, image, or video option
bg-colorbg-imagebg-video
Remaining tasks
- ✅ File an issue about this project
- ✅ Add
bg-color,bg-image,bg-videoclasses for sections with backgrounds - ✅ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ➖ Developer Documentation support on feature change/addition
- ➖ User Guide Documentation support on feature change/addition
- ✅ Code review from 1 Varbase core team member
- ✅ Full testing and approval
- ✅ Credit contributors
- ✅ Review with the product owner
- ✅ Release varbase-9.0.3, varbase_layout_builder-10.0.7
User interface changes
In the case of having 3 sections as in the following image

The HTML will have the following selectors for the 3 sections

API changes
- N/A
Data model changes
- N/A
Comments
Comment #2
rajab natshahComment #3
rajab natshahComment #4
rajab natshahComment #5
rajab natshahComment #6
rajab natshahComment #7
rajab natshahNot committed yet.
Asking to add the patch in #3213112: Add a specific class when having sections with background color, image, or video option
A patch for the committed bootstrap_styles-1.0.3 tag release
Which will add the following classes for sections
bg-colorbg-imagebg-videoComment #8
rajab natshahComment #10
rajab natshahComment #11
rajab natshahUsed the patch from
#3213112: Add a specific class when having sections with background color, image, or video option
The issue was started by Noor Ghunaim (n.ghunaim) with an init patch fix.
Comment #13
rajab natshahComment #14
rajab natshahComment #15
rajab natshahComment #17
rajab natshahComment #18
rajab natshah