From 6d19cad5db5b1127330d141ce2f14dfd6406ef7e Mon Sep 17 00:00:00 2001 From: Louis-Maxime Piton Date: Tue, 23 Jul 2024 09:25:22 +0200 Subject: [PATCH] . --- site/assets/js/partials/code-examples.js | 2 -- site/static/docs/5.3/assets/js/color-modes.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/site/assets/js/partials/code-examples.js b/site/assets/js/partials/code-examples.js index 164a77db4ee3..d81191a96565 100644 --- a/site/assets/js/partials/code-examples.js +++ b/site/assets/js/partials/code-examples.js @@ -17,7 +17,6 @@ export default () => { // Insert copy to clipboard button before .highlight const btnTitle = 'Copy to clipboard' const btnEdit = 'Edit on StackBlitz' - // const btnTheme = 'Toggle local theme' const btnHtml = [ '
', @@ -52,7 +51,6 @@ export default () => { snippetButtonTooltip('.btn-clipboard', btnTitle) snippetButtonTooltip('.btn-edit', btnEdit) - // snippetButtonTooltip('.btn-theme', btnTheme) const clipboard = new ClipboardJS('.btn-clipboard', { target: trigger => trigger.closest('.bd-code-snippet').querySelector('.highlight'), diff --git a/site/static/docs/5.3/assets/js/color-modes.js b/site/static/docs/5.3/assets/js/color-modes.js index be4b178ebf15..f0a2c5c4dad0 100644 --- a/site/static/docs/5.3/assets/js/color-modes.js +++ b/site/static/docs/5.3/assets/js/color-modes.js @@ -73,7 +73,7 @@ const theme = toggle.getAttribute('data-bs-theme-value') if (toggle.closest('.bd-code-snippet')) { - setTheme(theme, toggle.closest('.bd-code-snippet').firstChild) + setTheme(theme, toggle.closest('.bd-code-snippet').firstElementChild) showActiveTheme(theme, true, toggle.closest('.dropdown-menu').previousElementSibling) } else { setStoredTheme(theme)