academicpages / academicpages/academicpages.github.io

Dark theme: Page flashes white on reload/change

Ouverte
#3,646 8 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
blocked
Langage dominant
SCSS
Étoiles
17.6k
Forks
9.2k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

**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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.