Skip to content

[Formik Website] Responsive layout issue – missing horizontal padding on large screens #4065

@yogeshtiwari24

Description

@yogeshtiwari24

Bug report

On large screens (≥1024px), the homepage content appears to stick to the edges with no horizontal padding.

Root Cause:
The container uses px-4 lg:px-0, which removes horizontal padding at the lg breakpoint. Since Tailwind’s container class does not include default padding, this results in no spacing on large screens.

Related Commit:
This behavior seems to originate from commit cc4c245 ("Fix hero padding"), where lg:px-0 was introduced.

Steps to Reproduce:

Visit https://formik.org/
View on a screen ≥1024px width
Observe content touching left/right edges

Expected Behavior:
Consistent horizontal padding across screen sizes.

Actual Behavior:
No horizontal padding on large screens.

Additional Info:

Reproducible across browsers

Suggestion:
Consider replacing lg:px-0 with lg:px-8 or removing it.

I’d be happy to submit a PR to fix this if it aligns with the intended design.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions