Added frontend and email support for new alignment setting in CTA card#22540
Added frontend and email support for new alignment setting in CTA card#22540kevinansfield merged 2 commits intomainfrom
Conversation
Ref https://linear.app/ghost/issue/PLG-379/add-center-alignment-as-a-setting - A new alignment setting was added to the CTA card to support center alignment when the full-width layout is selected. - As part of this, the button is now only full-width in the immersive layout when there is an image.
WalkthroughThe changes update the styling of call-to-action (CTA) elements in both the main frontend CSS and the email template partial. In the frontend CSS file, new rules are introduced to ensure that centered CTA content is vertically aligned and that CTA text is centered in immersive centered CTAs. Additionally, the selectors have been modified to broaden the scope of button styles and to restrict immersive button styles only to CTAs with accompanying images. In the email template partial, the updates include new CSS rules for centering the paragraph text within CTA text elements and for centering the table within the CTA button container. An existing selector is also updated to apply the same styling rules to certain immersive CTA components without images. Possibly related PRs
Suggested labels
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (2)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Ref https://linear.app/ghost/issue/PLG-379/add-center-alignment-as-a-setting