feat(components): Add sticky variation to Modal Actions and Header#3027
Open
taylorvnoj wants to merge 9 commits intomasterfrom
Open
feat(components): Add sticky variation to Modal Actions and Header#3027taylorvnoj wants to merge 9 commits intomasterfrom
taylorvnoj wants to merge 9 commits intomasterfrom
Conversation
Deploying atlantis with
|
| Latest commit: |
22f2e82
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ef2b888f.atlantis.pages.dev |
| Branch Preview URL: | https://taylor-sticky-modal-bits.atlantis.pages.dev |
Contributor
|
@AutumnDaweBaillie Do you think we should add some padding top to Also, I'm thinking we need box-shadow to the sticky header and actions to indicate overflow when content scrolls behind them |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Motivations
Add sticky header/actions variants to composable Modals so long content scrolls in the middle while key controls stay visible, without changing default behaviour.
Changes
Added
variant="sticky" | "inline" (default)support onModal.HeaderandModal.ActionsWhen sticky is enabled:
Header and actions are extracted from the scrollable body
The modal switches to a flex column layout
Only the modal body scrolls, while header and actions remain fixed
This avoids issues with position: sticky (e.g. content appearing underneath the footer) and results in more predictable layout and visual behaviour.
NOTE: The implementation relies on identifying
ModalHeader/ModalActionsdirectly (no wrapper support), which reflects current usage patterns in production. If we decide we want to support that, we can iterate on this foundation.Changed
Testing
variant="sticky"in the header of "Modal With Provider Example" story to check that tabbing through content is still behaving as normalScreen.Recording.2026-03-31.at.7.29.27.AM.mov
In Atlantis we use Github's built in pull request reviews.