Skip to content

Commit 1081802

Browse files
authored
[3.12] gh-121035: Further improve logging flow diagram with respect to dark/light modes. (GH-121265) (GH-121321)
(cherry picked from commit 0898354)
1 parent c3f393c commit 1081802

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

Doc/howto/logging.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,11 +402,13 @@ following diagram.
402402
function updateBody(theme) {
403403
let elem = document.body;
404404
405+
elem.classList.remove('dark-theme');
406+
elem.classList.remove('light-theme');
405407
if (theme === 'dark') {
406408
elem.classList.add('dark-theme');
407409
}
408-
else {
409-
elem.classList.remove('dark-theme');
410+
else if (theme === 'light') {
411+
elem.classList.add('light-theme');
410412
}
411413
}
412414

Doc/howto/logging_flow.svg

Lines changed: 10 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)