People who code: we want your input. Take the Survey

New answers tagged

3

The Container component is not a Variant component, so you can't create variants for it. You have 2 options, the best as has already been mentioned, just add a Style option for the Container component and use that to add the background colors. It's the simplest and easiest to use option for content authors. The 2nd is to clone an existing variant component, ...


1

If the only difference is the background color I would say follow this guide to handle the styling difference with a checkbox in the properties of a rendering: Add a style for a rendering Scriban could be useful if you want to be able to edit the markup from the Content Editor. For this particular application I don't think it would be of particular help or ...


Top 50 recent answers are included