Skip to content

Add optional align parameter to accordion items shortcode.#2816

Open
richtefee wants to merge 1 commit intonunocoracao:mainfrom
richtefee:feature/accordion-align
Open

Add optional align parameter to accordion items shortcode.#2816
richtefee wants to merge 1 commit intonunocoracao:mainfrom
richtefee:feature/accordion-align

Conversation

@richtefee
Copy link

@richtefee richtefee commented Feb 25, 2026

On the Blowfish homepage, the accordion / accordion-item shortcode currently inherits the text alignment from the surrounding container for its inner Markdown content. This can lead to unsatisfactory rendering, at least for lists.

I added an optional align parameter to accordion items, allowing explicit control of text alignment (left, center, right) for the content inside each item.

If align is not set, the content inherits the outer container’s alignment (no default is forced).

Please see the attached images for examples:
Before:
Screenshot_20260225_201543

After:
Screenshot_20260225_202037

@netlify
Copy link

netlify bot commented Feb 25, 2026

Deploy Preview for snazzy-dango-efb2ec ready!

Name Link
🔨 Latest commit 641c16a
🔍 Latest deploy log https://app.netlify.com/projects/snazzy-dango-efb2ec/deploys/699f34f773e24c0007db7374
😎 Deploy Preview https://deploy-preview-2816--snazzy-dango-efb2ec.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant