Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Navigating back to landing page leaves empty whitespace from news banner

Abierto
#8,547 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
css, javascript, react
Área
frontend

Línea de trabajo

Comienza con pages/index.js y el componente NewsSection; después, sigue los estilos de layout que hacen que quede padding-top: 6rem tras navegar desde una página de documentación interna a /. Confirma que la transición de ruta reproduce el espacio vacío y determina con los mantenedores el comportamiento previsto del banner. Se considera terminado cuando volver a la página de inicio no deja espacio en blanco no intencionado y el comportamiento del banner coincide con el diseño elegido.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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!

Lenguaje dominante
CSS
Estrellas
8.3k
Forks
1.2k
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de primefaces/primereact

Todos los issues de primefaces/primereact

Issues similares

Más issues de Web Dev

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.