0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-28 10:24:19 +01:00

.
All checks were successful
BrowserStack / browserstack (push) Has been skipped

This commit is contained in:
Louis-Maxime Piton 2024-07-23 09:25:22 +02:00
parent 0816e952ea
commit 6d19cad5db
2 changed files with 1 additions and 3 deletions

View File

@ -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 = [
'<div class="bd-code-snippet">',
@ -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'),

View File

@ -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)