Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond authored Feb 12, 2025
2 parents 33c9dbf + c5be828 commit ee280bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/tests/helpers/fixture.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const fixtureId = 'fixture'
const FIXTURE_ID = 'fixture'

export const getFixture = () => {
let fixtureElement = document.getElementById(fixtureId)
let fixtureElement = document.getElementById(FIXTURE_ID)

if (!fixtureElement) {
fixtureElement = document.createElement('div')
fixtureElement.setAttribute('id', fixtureId)
fixtureElement.setAttribute('id', FIXTURE_ID)
fixtureElement.style.position = 'absolute'
fixtureElement.style.top = '-10000px'
fixtureElement.style.left = '-10000px'
Expand Down
5 changes: 5 additions & 0 deletions site/assets/js/partials/code-examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ export default () => {
const namespace = 'http://www.w3.org/1999/xlink'
const originalXhref = iconFirstChild.getAttributeNS(namespace, 'href')
const originalTitle = event.trigger.title
const isCheckIconVisible = originalXhref === '#check2'

if (isCheckIconVisible) {
return
}

tooltipBtn.setContent({ '.tooltip-inner': 'Copied!' })
event.trigger.addEventListener('hidden.bs.tooltip', () => {
Expand Down

0 comments on commit ee280bc

Please sign in to comment.