Skip to content

Conversation

cderv
Copy link
Collaborator

@cderv cderv commented Apr 17, 2025

This reverts

I believe work from @gordonwoodhull in

has updated logic for handling Light / Dark mode. And this is including loading Giscus theme correctly. So it fixed #8613 too.

Mutation Observer is not needed anymore.

This was tested locally using https://github.com/cderv/quarto-giscus-testing

@gordonwoodhull reading what you've done with Giscus in mind, I believed you handled correct Dark Mode default and pass the theme correctly to giscus. My tests confirms it, but review is welcome in case there is other thing to check for Giscus regarding your dark mode change

This reverts "Merge pull request #11047 from kv9898/main"

reverting commit 61f987c, reversing
changes made to dca5984.

Updated logic for handling Light / Dark mode is now enough to load
the correct theme at startup. So #12173 fix the initial issue #8613
@cderv cderv requested a review from gordonwoodhull April 17, 2025 12:23
@gordonwoodhull
Copy link
Contributor

gordonwoodhull commented Apr 17, 2025

#12569 should work, but I think this is the better change because it makes the logic simpler instead of more complicated. (By not checking for conditions that will no longer happen.)

I'll write up a more thorough explanation on #12567

@cscheid
Copy link
Collaborator

cscheid commented Apr 17, 2025

I think this is the better change because it makes the logic simpler instead of more complicated.

Agreed, and I withdrew my PR already :)

@cderv
Copy link
Collaborator Author

cderv commented Apr 17, 2025

Item is already in changelog like this

- ([#8613](https://github.com/quarto-dev/quarto-cli/issues/8613)): Fix `giscus` color on load to support dark mode (by @kv9898).

Not sure we need to change it so this is probably good to merge.

@cscheid cscheid merged commit c573d09 into main Apr 17, 2025
49 checks passed
@cscheid cscheid deleted the fix/giscus-light-dark branch April 17, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Giscus comments on quarto are initially rendered in light mode even when the dark mode switch is on

3 participants