Skip to content

Add gutter spacing between grid columns - #109

Open
lovelymandal16 wants to merge 1 commit into
adobe:mainfrom
lovelymandal16:gutterSpace
Open

Add gutter spacing between grid columns#109
lovelymandal16 wants to merge 1 commit into
adobe:mainfrom
lovelymandal16:gutterSpace

Conversation

@lovelymandal16

@lovelymandal16 lovelymandal16 commented Jul 27, 2026

Copy link
Copy Markdown

Problem

  • Fields placed in a multi-column layout (e.g. two 6-colspan text inputs in one row) render flush against each other
  • No visible gutter/padding between adjacent columns
  • Affects any component, not just text inputs

Fix

  • Added a $grid-gutter variable (src/site/_variables.scss)
  • .aem-GridColumn now gets half-gutter padding on each side, so adjacent columns get a real gap between them
  • .aem-Grid gets a matching negative margin, so the row's outer edge stays aligned with its container (no layout shift outside the row)

Result

  • Adjacent columns now have visible spacing between them
  • Overall form width/alignment is unchanged
    Before :
image

After :
image

Adjacent colspan fields (e.g. two 6-column fields in a row) rendered
flush against each other with no gap. Adds a configurable gutter via
half-padding on .aem-GridColumn, offset by a matching negative margin
on .aem-Grid so the row's outer edge is unaffected.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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