academicpages / academicpages/academicpages.github.io

Dark theme: Page flashes white on reload/change

Abierto
#3,646 8 comentarios 0 reacciones 0 asignados Ver en GitHub
blocked
Lenguaje dominante
SCSS
Estrellas
17.6k
Forks
9.2k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**Describe the bug**

When dark theme is used, reloading or visiting another link causes a white flash due to theme style transitioning.

**To Reproduce**

Steps to reproduce the behavior:
1. Go to https://academicpages.github.io/
2. Set dark theme if not already using it due to system preference
3. Click on the links at the top bar (or anywhere else)
4. See issue (page will flash white before applying dark theme)

**Expected behavior**

Theme should be applied seamlessly on page change/reload.

**Screenshots**

https://github.com/user-attachments/assets/8cf6cd73-caba-41cc-bbc0-b83106337203

**Browser (please complete the following information):**
- OS: iOS (also tested on Linux)
- Browser: Firefox
- Version: 152.0.1 (aarch64)

**Additional context**

Fixed by #3647.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.