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
Docs page
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
- Go to the PrimeReact homepage (
/).
- Click on "Get Started" to navigate to an inner doc page. Notice the news/announcement banner appears at the very top.
- Click the PrimeReact logo in the top-left to return to the homepage.
- 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!
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
Docs page
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.8115Steps to reproduce the behavior
/).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 inpages/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!