-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Design Review - style(App): Fixes having the unnecessary whitespace below the FooterCfGov #369
Conversation
…er while zoomed out or when swiping on mobile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heyo! I think putting the background on a div restricted to the size of this div with h-dvh
has some weird effects on pages that are larger than the viewport:
Digging through git, it looks like this h-dvh
was set to help with making loading screens take up the viewport, but if you put this on a div that was set to auto
, this approach works. 🎉
… wonky colors on certain div's
@billhimmelsbach @natalia-fitzgerald Found a flex box-based solution for the overall screen layout which seems to work best. Right now we need to choose between Fix A and Fix B (shown at the top). Also, requires cfpb/design-system-react#333 merged in first to see the change. |
…elow-too-much-white-space-2
@shindigira |
function FooterCfGovWrapper(): JSX.Element { | ||
// TODO: Choose between: | ||
// Maximizing the midsection white space with 'mt-auto' or maximizing the gray space in the footer with 'flex-1 | ||
return <FooterCfGov className='flex-1' />; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to see the change before cfpb/design-system-react#333 is merged in, can manually edit this in the browser's devtools.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shindigira - How can I see it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For you, we should put it on AWS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is up for your review on the preview site @natalia-fitzgerald 👍
…to pass to the inner Footer (#333) closes #332 Allows for custom styling which is needed in cfpb/sbl-frontend#369
…elow-too-much-white-space-2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing this. Looks good @shindigira!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 🎉
closes #365
Changes
How to test this PR
yarn install
to get the latest DSR updateScreenshots BEFORE the fix
Screenshot - Fix B (View zoomed out) - Maximizing the footer