Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
louismaximepiton committed Jul 23, 2024
1 parent 0816e95 commit 6d19cad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions site/assets/js/partials/code-examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -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">',
Expand Down Expand Up @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion site/static/docs/5.3/assets/js/color-modes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6d19cad

Please sign in to comment.