diff --git a/news/changelog-1.7.md b/news/changelog-1.7.md index 739db12bf05..cd37cdc19d4 100644 --- a/news/changelog-1.7.md +++ b/news/changelog-1.7.md @@ -1,4 +1,10 @@ -All changes included in 1.7: +# v1.8 backports + +## In this release + +- ([#12625](https://github.com/quarto-dev/quarto-cli/pull/12625)): Fire resize event on window when light/dark toggle is clicked, to tell widgets to resize. + +# v1.7 changes ## Regression fixes diff --git a/src/resources/formats/html/templates/quarto-html-before-body.ejs b/src/resources/formats/html/templates/quarto-html-before-body.ejs index 5da2a811429..a81090e2bfa 100644 --- a/src/resources/formats/html/templates/quarto-html-before-body.ejs +++ b/src/resources/formats/html/templates/quarto-html-before-body.ejs @@ -186,6 +186,7 @@ toggleColorMode(toAlternate); setStyleSentinel(toAlternate); toggleGiscusIfUsed(toAlternate, darkModeDefault); + window.dispatchEvent(new Event('resize')); }; <% if (respectUserColorScheme) { %>