Skip to content

fix(modal): footer action spacing - #8526

Merged
mcoker merged 5 commits into
mainfrom
bug/7226-modal-footer-action-spacing
Jul 24, 2026
Merged

fix(modal): footer action spacing#8526
mcoker merged 5 commits into
mainfrom
bug/7226-modal-footer-action-spacing

Conversation

@jcmill

@jcmill jcmill commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Closes #7226

Updated Modal footer action spacing from t-shirt size to semantic token and removed unnecessary breakpoint override that was halving the spacer.

Summary by CodeRabbit

  • Style
    • Standardized spacing for modal footer action buttons to use the default action-to-action gap.
    • Updated the small (sm) variant so its spacing matches the base footer button spacing.
    • Simplified small-screen breakpoint styling by removing a now-redundant footer spacing override for more consistent layouts.

@jcmill
jcmill requested a review from mcoker July 23, 2026 13:29
@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 10ab5816-6497-4e89-b15e-5017c3b9e68d

📥 Commits

Reviewing files that changed from the base of the PR and between 3ca1968 and 7b46538.

📒 Files selected for processing (1)
  • src/patternfly/components/ModalBox/modal-box.scss
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/patternfly/components/ModalBox/modal-box.scss

Walkthrough

The ModalBox footer button margin now uses a single action-to-action gap token, including the small variant and breakpoint override.

Changes

Modal footer spacing

Layer / File(s) Summary
Unify footer button spacing
src/patternfly/components/ModalBox/modal-box.scss
The footer button margin uses the semantic action-to-action gap token, the small variant matches the base value, and the small-breakpoint override references that value.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Suggested reviewers: mcoker

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title follows conventional commit format and clearly describes the modal footer spacing fix.
Linked Issues check ✅ Passed The change matches #7226 by switching to the semantic spacer and removing the breakpoint-based spacer override.
Out of Scope Changes check ✅ Passed The PR only changes ModalBox footer spacing behavior, with no unrelated code changes evident.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jcmill
jcmill force-pushed the bug/7226-modal-footer-action-spacing branch from 4e70111 to e12fcf5 Compare July 23, 2026 13:37
@patternfly-build

patternfly-build commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

@jcmill jcmill changed the title Bug/7226 modal footer action spacing fix(modal): footer action spacing Jul 23, 2026
@jcmill
jcmill marked this pull request as ready for review July 23, 2026 14:43

// Footer buttons
--#{$modal-box}__footer--c-button--MarginInlineEnd: var(--pf-t--global--spacer--md); // Button spacer is used to manipulate margin-inline-start and/or margin-right values at various breakpoints, with a single value.
--#{$modal-box}__footer--c-button--sm--MarginInlineEnd: calc(var(--#{$modal-box}__footer--c-button--MarginInlineEnd) / 2);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Technically this is a breaking change. Do you mind adding it (and the media query) back and just setting the value to var(--pf-t--global--spacer--gap--action-to-action--default)?

Comment thread src/patternfly/components/ModalBox/modal-box.scss Outdated
@jcmill
jcmill requested a review from mcoker July 24, 2026 14:03
Co-authored-by: Michael Coker <35148959+mcoker@users.noreply.github.com>

@mcoker mcoker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One little straggler

Comment thread src/patternfly/components/ModalBox/modal-box.scss Outdated
Co-authored-by: Michael Coker <35148959+mcoker@users.noreply.github.com>

@mcoker mcoker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🦶🔘🪐++

@mcoker
mcoker merged commit 8415cc6 into main Jul 24, 2026
6 checks passed
@patternfly-build

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 6.6.0-prerelease.24 🎉

The release is available on:

Your semantic-release bot 📦🚀

dlabaj pushed a commit that referenced this pull request Jul 28, 2026
dlabaj pushed a commit that referenced this pull request Jul 28, 2026
dlabaj added a commit that referenced this pull request Jul 28, 2026
* fix: address word-break/overflow-wrap bug (#8487)

* chore(input group): add radius modifier (#8483)

* fix(table): nested table sorting (#8491)

* fix(tree-view): revert caret rotations (#8490)

* fix(a11y): ignore target-size rule for WCAG 2.2 bump (#8493)

* fix(tree): update tree table and DLS tree toggle icon direction (#8502)

* fix: update disabled description to use text color token (#8497)

* fix(plain actions): update tokens to vertical-plain (#8495)

* fix: address bottom pagination bugs (#8498)

* fix: address bottom pagination bugs

* fix: round border-radius on default bottom in glass

* chore(primary details): fix drawer and toolbar (#8509)

* fix(modal): footer action spacing (#8526)

---------

Co-authored-by: Michael Coker <35148959+mcoker@users.noreply.github.com>
Co-authored-by: Andrew Ronaldson <aronalds@redhat.com>
Co-authored-by: Jake Miller <jake83miller@gmail.com>
Co-authored-by: Eric Olkowski <70952936+thatblindgeye@users.noreply.github.com>
Co-authored-by: Jake Miller <jakmille@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug - Modal - update footer action spacing

3 participants