Skip to content

Navigating back to landing page leaves empty whitespace from news banner #8547

@Prakash1185

Description

@Prakash1185

Describe the bug

When navigating to inner documentation pages (e.g., /button, /inputtext), the <NewsSection /> banner renders at the top of the screen.

However, when a user clicks the logo to navigate back to the homepage (/), the news banner disappears, but an empty whitespace gap remains above the Topbar.

Landing page

Image

Docs page

Image

Reproducer

No response

System Information

System:
    OS: Windows 11 10.0.26200
    CPU: (12) x64 12th Gen Intel(R) Core(TM) i5-12450H
    Memory: 3.61 GB / 15.65 GB
  Binaries:
    Node: 22.22.0 - C:\nvm4w\nodejs\node.EXE
    Yarn: 4.10.3 - C:\nvm4w\nodejs\yarn.CMD
    npm: 11.12.0 - C:\Users\pgcet\AppData\Roaming\npm\npm.CMD
    bun: 1.3.11 - C:\Users\pgcet\AppData\Local\Microsoft\WinGet\Packages\Oven-sh.Bun_Microsoft.Winget.Source_8wekyb3d8bbwe\bun-windows-x64\bun.EXE
  Browsers:
    Chrome: 148.0.7778.179
    Edge: Chromium (140.0.3485.54)
    Internet Explorer: 11.0.26100.8115

Steps to reproduce the behavior

  1. Go to the PrimeReact homepage (/).
  2. Click on "Get Started" to navigate to an inner doc page. Notice the news/announcement banner appears at the very top.
  3. Click the PrimeReact logo in the top-left to return to the homepage.
  4. The banner component is gone, but the CSS layout spacing (padding-top: 6rem) remains, pushing the homepage Topbar down awkwardly with a white gap.

Expected behavior

I'm opening this issue to get feedback from maintainers before raising a PR. Should we:

Option A: Bring back the <NewsSection /> to the landing page so the banner is visible everywhere globally? (Simply uncommenting the import and the component in pages/index.js).

Option B: Explicitly disable the banner state when returning to the landing page to keep it clean?

Let me know which direction fits the project's design goals and I will happily submit a PR to implement it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs TriageIssue will be reviewed by Core Team and a relevant label will be added as soon as possible

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions