Add field to toggle padding on CTA Sections

Created on 20 March 2025, about 1 month ago

Problem/Motivation

In https://www.drupal.org/project/bluecheese/issues/3512292 πŸ› Trial Page left padding/margin Active we added a quick fix so CTA sections that live in the hero section of landing pages are not constrained with the all the padding that they have in main content areas. But there are use cases in which we want to reduce the padding and expand the overall width of CTA section components in the main content area as well.

Proposed resolution

Add a field to the CTA section component that allows content creators to have control over whether to add the padding or not.

Remaining tasks

Currently existing canonical content CTA sections should largely be unaffected, and if they are edited, they should default to original narrow content area. If pages that are using the wide content version, e.g. the trial pages are edited again, the select box should be checked to prevent them from becoming narrow again.

User interface changes

Content creators will have the choice of wide/narrow gutters on CTA sections. The default should be narrow content/wide gutters, with a checkbox field to select the option to have wider content and narrower gutters.

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States spicy.werewolf

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024