Skip to content

feat: add helpers for grid margin and grid gap#3344

Merged
vprothais merged 15 commits intoouds/mainfrom
oud/main-ml-add-spacing-helpers-for-edge-to-edge-grid-security-margin-and-gutter
Feb 20, 2026
Merged

feat: add helpers for grid margin and grid gap#3344
vprothais merged 15 commits intoouds/mainfrom
oud/main-ml-add-spacing-helpers-for-edge-to-edge-grid-security-margin-and-gutter

Conversation

@MaxLardenois
Copy link
Collaborator

@MaxLardenois MaxLardenois commented Feb 10, 2026

Types of change

  • Non-breaking change
  • Breaking change (fix or feature that would change existing functionality and usage)

Related issues

Closes #3314

Context & Motivation

We need a way to create edge-to-edge containers

Description

Add grid margin (-gridmargin) and grid gap (-gridgap) scaled spacings utilities (padding, margin and gap)

Checklists

  • I have read the contributing guidelines
  • My change follows the developer guide
  • My change pass all tests
  • My change is compatible with a responsive display
  • I have added tests (Javascript unit test or visual) to cover my changes
  • My change introduces changes to the documentation that I have updated accordingly
    • Title and DOM structure is correct
    • Links have been updated (title changes impact links)
    • CSS for the documentation
  • I have checked all states and combinations of the component with my change
  • I have checked all the impacts for the other components and core behavior (grid, reboot, utilities)

Checklist (for Core Team only)

  • The changes need to be in the migration guide
  • The changes are well displayed in Storybook (be careful if example order has changed for DSM)
  • The changes are compatible with RTL
  • Manually test browser compatibility with BrowserStack (Chrome 120, Firefox 121, Edge 120, Safari 15.6, iOS Safari, Chrome & Firefox on Android)

Progression (for Core Team only)

Live previews

@netlify
Copy link

netlify bot commented Feb 10, 2026

Deploy Preview for boosted ready!

Name Link
🔨 Latest commit b11b194
🔍 Latest deploy log https://app.netlify.com/projects/boosted/deploys/699876f29380120008927d92
😎 Deploy Preview https://deploy-preview-3344--boosted.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.

@MaxLardenois MaxLardenois marked this pull request as ready for review February 18, 2026 07:12
@boosted-bot boosted-bot moved this from In Progress / Draft to Need Dev Review in 🟣 [Orange-Boosted-Bootstrap] PRs Board Feb 18, 2026

### Edge to edge containers

The negative `gridmargin` `margin` utility can be used to create edge to edge containers, the following example creates an edge to edge container on the smaller breakpoints.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could add that the availability of this helper doesn't depend on the value of $enable-negative-margins ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added 2 callouts, lmk if it's ok


The negative `gridmargin` `margin` utility can be used to create edge to edge containers, the following example creates an edge to edge container on the smaller breakpoints.

<div class="mx-ngridmargin mx-md-none py-small px-md-small px-gridmargin mb-small" style="background-color: rgba(var(--bd-primary-light-rgb), 0.15);">Edge to edge container on smaller breakpoints</div>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The left menu is also hidden in large viewport, we could have the edge to edge on large screen too. Easier to test with the browser while keeping the content readable. WDYT ?

Suggested change
<div class="mx-ngridmargin mx-md-none py-small px-md-small px-gridmargin mb-small" style="background-color: rgba(var(--bd-primary-light-rgb), 0.15);">Edge to edge container on smaller breakpoints</div>
<div class="mx-ngridmargin mx-lg-none py-small px-lg-small px-gridmargin mb-small" style="background-color: rgba(var(--bd-primary-light-rgb), 0.15);">Edge to edge container on smaller breakpoints</div>

The code example underneath should be updated too if we keep this change.

@boosted-bot boosted-bot moved this from Need Dev Review to Need Lead Dev Review in 🟣 [Orange-Boosted-Bootstrap] PRs Board Feb 20, 2026
@vprothais vprothais merged commit 4d39790 into ouds/main Feb 20, 2026
13 checks passed
@vprothais vprothais deleted the oud/main-ml-add-spacing-helpers-for-edge-to-edge-grid-security-margin-and-gutter branch February 20, 2026 15:30
@github-project-automation github-project-automation bot moved this from Need Lead Dev Review to Done in 🟣 [Orange-Boosted-Bootstrap] PRs Board Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants