Navigating back to landing page leaves empty whitespace from news banner
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
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!
- Lenguaje dominante
- CSS
- Estrellas
- 8.3k
- Forks
- 1.2k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de primefaces/primereact
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
primefaces/primereact#8552 ·
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
primefaces/primereact#8550 ·
-
Row checkbox selection tick is invisible in Landing Page Theme sectionPosiblemente ocupada @Prakash1185 la tomó hace 150 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
primefaces/primereact#8545 ·
-
Dependency conflict between jspdf v4 and jspdf-autotable during npm installPosiblemente ocupada @Kamran92 la tomó hace 165 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
primefaces/primereact#8537 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
primefaces/primereact#8551 ·
Todos los issues de primefaces/primereact
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
area:frontend kind:bug priority:p1 ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
bug ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
PhyberApex/kuroshiro#1687 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
microsoft/monaco-editor#5563 ·
Los mantenedores suelen responder en 1 día