Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Navigating back to landing page leaves empty whitespace from news banner

Aperta
#8,547 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
css, javascript, react
Ambito
frontend

Direzione di ricerca

Inizia da pages/index.js e dal componente NewsSection, quindi traccia gli stili di layout che lasciano padding-top: 6rem dopo la navigazione da una pagina di documentazione interna a /. Conferma che la transizione della route riproduca lo spazio vuoto e determina con i maintainer il comportamento previsto del banner. Il lavoro è completato quando tornare alla home page non lascia spazio bianco indesiderato e il comportamento del banner corrisponde al design scelto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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!

Lingua principale
CSS
Stelle
8.3k
Fork
1.2k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di primefaces/primereact

Tutte le issue di primefaces/primereact

Issue simili

Altre issue su Web Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.