Skip to content

feat(dialog): collapse the action strip when there are no Buttons - #434

Merged
tannevaled merged 1 commit into
mainfrom
dialog-collapse-empty-strip
Aug 30, 2026
Merged

feat(dialog): collapse the action strip when there are no Buttons#434
tannevaled merged 1 commit into
mainfrom
dialog-collapse-empty-strip

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

The Dialog always reserved a 32px bottom action strip, so a modal that keeps its controls inside Content (a card with inline buttons) got an empty SurfaceAlt strip under its body. Make the strip height zero when Buttons is empty: Content fills the whole body and no strip is drawn. Dialogs with action buttons are unchanged — this lets the Dialog be the single high-level modal frame for both button-strip and inline-button layouts. Pixel-tested; 100% coverage gate green.

The Dialog always reserved a 32px bottom action strip, so a modal that wants to
keep its controls inside Content (a card with inline buttons, like a hand-built
panel) got an empty SurfaceAlt strip under its body. Make the strip height zero
when Buttons is empty: Content then fills the whole body and no strip is drawn.
Dialogs with action buttons are unchanged. This lets the Dialog be the single
high-level modal frame for both button-strip and inline-button layouts.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit 8234d5d into main Aug 30, 2026
1 check passed
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