fix(mfa): fix UI issue with MFA modal on mobile#19756
Merged
MagentaManifold merged 1 commit intomainfrom Dec 17, 2025
Merged
Conversation
722c3d6 to
5f3006a
Compare
dschom
reviewed
Dec 12, 2025
| <div | ||
| data-testid={testid} | ||
| className="flex flex-col justify-center fixed inset-0 z-50 w-full p-2 h-full bg-black/75" | ||
| className="flex fixed inset-0 z-50 w-full p-2 bg-black/75 h-dvh overflow-y-auto overscroll-contain" |
Contributor
Author
There was a problem hiding this comment.
Yeah, flex is needed for m-auto (centering in both axes) in the child element to work
dschom
approved these changes
Dec 17, 2025
Because: * The modal jumps on scroll This commit: * prevents the background from scrolling with overscroll-contain and makes scrolling work nicer * adds a story for modal to test out scrolling Closes FXA-12473
5f3006a to
b37a4d2
Compare
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.
Because
This pull request
Issue that this pull request solves
Closes: FXA-12473
Checklist
Put an
xin the boxes that applyScreenshots (Optional)
(I had to make it longer to make it scrollable; this screenshot alone doesn't tell much, since you need to scroll to see the problem)
Other information (Optional)
You might need this to actually out the changes (responsive mode in desktop firefox doesn't have that taskbar, and the taskbar doesn't hide on scroll in storybook): https://mozilla.github.io/ecosystem-platform/reference/mobile-specifics#android-debugging