Skip to content

Commit 95b4ac3

Browse files
light/dark toggle fire resize event
fixes sizing issues in plotly-python and heatmaply fixes non-displaying leaflet
1 parent 07c32fb commit 95b4ac3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

news/changelog-1.7.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
All changes included in 1.7:
1+
# v1.8 backports
2+
3+
## In this release
4+
5+
- ([#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.
6+
7+
# v1.7 changes
28

39
## Regression fixes
410

src/resources/formats/html/templates/quarto-html-before-body.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@
186186
toggleColorMode(toAlternate);
187187
setStyleSentinel(toAlternate);
188188
toggleGiscusIfUsed(toAlternate, darkModeDefault);
189+
window.dispatchEvent(new Event('resize'));
189190
};
190191
191192
<% if (respectUserColorScheme) { %>

0 commit comments

Comments
 (0)