Skip to content

test(#3609): add modal actions padding playground pages and test - #4147

Open
Spark450 wants to merge 3 commits into
devfrom
mark/3609-modal-scroll-padding
Open

test(#3609): add modal actions padding playground pages and test#4147
Spark450 wants to merge 3 commits into
devfrom
mark/3609-modal-scroll-padding

Conversation

@Spark450

@Spark450 Spark450 commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Before

The modal footer actions had uneven padding, 8px at the top against 32px at the bottom on desktop, so the Cancel and Save buttons looked cramped against the divider above them.

After

The fix is a design token change rather than a component change. modal-actions-padding becomes an even 24px on all sides on desktop, and 16px on mobile. That's in GovAlta/design-tokens#168.

That fix is already live. It's in design-tokens 2.12.0, and this repo has been on 2.12.0 since #4184 merged on July 31.

This PR is now just the playground pages so the spacing can be checked by eye:

  • React page at bugs/3609
  • Angular page at bugs/3609

Why there is no browser test

This originally included a browser test, skipped until the design tokens version bump.

Picking it back up, the test can't really see the fix. Our browser tests only load the V1 tokens, and this fix is a V2 token, so in that environment the modal falls back to its hardcoded values and the test ends up checking numbers that never reach anyone.

Getting it working means loading the V2 tokens in the browser test setup. That does work, but it also turns up a few other tests that look like they're checking fallback values, so it's better as its own change than folded in here.

Steps to test

  1. Run the React playground: npm run serve:prs:react, then open bugs/3609.
  2. Click "Add another item" to open the modal.
  3. Check that the Cancel and Save buttons have even spacing around them.
  4. Same in the Angular playground: npm run serve:prs:angular, then open bugs/3609.

@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://GovAlta.github.io/ui-components/pr-preview-angular/pr-4147/

Built to branch gh-pages at 2026-08-05 18:04 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown

Preview links

Target URL
Docs https://govalta.github.io/ui-components/pr-preview/pr-4147/
React playground https://govalta.github.io/ui-components/pr-preview-react/pr-4147/
Angular playground https://govalta.github.io/ui-components/pr-preview-angular/pr-4147/

Built from commit 8987cd6. Previews are removed automatically when this PR closes.

The actual fix for the cramped modal footer actions is a design token
change (modal-actions-padding to a symmetric 24px desktop / 16px mobile)
in GovAlta/design-tokens#168. This adds the React and Angular playground
pages so reviewers can verify the spacing once ui-components bumps to the
new design-tokens release, plus a browser regression test that asserts the
footer actions top padding. The test is skipped until that version bump,
since the currently installed token still yields 8px.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Spark450
Spark450 force-pushed the mark/3609-modal-scroll-padding branch from 9a55826 to 2c31ef0 Compare July 20, 2026 23:12
@Spark450 Spark450 changed the title fix(#3609): add top padding to modal footer actions test(#3609): add modal actions padding playground pages and test Jul 20, 2026
@ArakTaiRoth
ArakTaiRoth requested a review from twjeffery August 4, 2026 17:07
@twjeffery
twjeffery marked this pull request as ready for review August 5, 2026 18:01
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.

2 participants