Skip to content

Use vertical rules grid API for galleries#15776

Open
frederickobrien wants to merge 2 commits intomainfrom
vertical-rules-api-in-galleries
Open

Use vertical rules grid API for galleries#15776
frederickobrien wants to merge 2 commits intomainfrom
vertical-rules-api-in-galleries

Conversation

@frederickobrien
Copy link
Copy Markdown
Contributor

@frederickobrien frederickobrien commented Apr 30, 2026

Following on from #15760, this uses the newly available verticalRules option in the grid module to apply outer lines to the gallery layout grid containers. Seems to work fine!

image

The centre line in GalleryCaption.tsx is trickier here than in more conventional article layouts as it moves around a fair bit depending on breakpoint. The verticalRules({ centre: true }) doesn't do the trick as is so I've left it alone.

May be surplus to requirements but I've also adjusted the CSS so that the left border of Gallery headers aligns with the body:

image

May not be the desired look but thought it was worth including just in case!

@frederickobrien frederickobrien requested review from a team and JamieB-gu April 30, 2026 21:15
@frederickobrien frederickobrien self-assigned this Apr 30, 2026
@frederickobrien frederickobrien added the maintenance Departmental tracking: maintenance work, not a fix or a feature label Apr 30, 2026
@github-actions
Copy link
Copy Markdown

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 30, 2026

@frederickobrien frederickobrien added the run_chromatic Runs chromatic when label is applied label May 1, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label May 1, 2026
@groakland groakland added this to the Interactives milestone May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Departmental tracking: maintenance work, not a fix or a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants