Light/Dark Mode issues on older versions of Safari 12,13, and 14 #10074
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
closed: can't repro
This bug is because of some local setup that can't be reproduced.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Howdy! We are using docusaurus for the https://excaliburjs.com documentation site. Some of our users have reported issues with code snippets showing both the light and dark mode versions at the same time in older versions of safari. The docusaurus project is in the /site directory in the example link.
See issue excaliburjs/Excalibur#2981
With our investigation this seems to be because of the way that the
:has
pseudo class is used to show/hide the snippet. One possible fix is a simpler selector using backwards compatible css in docusaurus?Reproducible demo
https://github.com/excaliburjs/Excalibur/tree/main/site
Steps to reproduce
Expected behavior
Either the light mode code snippet or the dark mode snippet should appear on older versions of safari (12, 13, 14)
Actual behavior
Both versions of the code snippet appear
Your environment
Self-service
The text was updated successfully, but these errors were encountered: