Skip to content

Commit 0898354

Browse files
authored
gh-121035: Further improve logging flow diagram with respect to dark/light modes. (GH-121265)
1 parent b180788 commit 0898354

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
@@ -403,11 +403,13 @@ following diagram.
403403
function updateBody(theme) {
404404
let elem = document.body;
405405
406+
elem.classList.remove('dark-theme');
407+
elem.classList.remove('light-theme');
406408
if (theme === 'dark') {
407409
elem.classList.add('dark-theme');
408410
}
409-
else {
410-
elem.classList.remove('dark-theme');
411+
else if (theme === 'light') {
412+
elem.classList.add('light-theme');
411413
}
412414
}
413415

Doc/howto/logging_flow.svg

Lines changed: 10 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)