overleaf/services/web/frontend/js/features/tooltip/index-bs5.ts
Davinder Singh 684731638a Merge pull request #21195 from overleaf/ds-adding-tooltips-trigger-bs5
BS5 Migration - Adding tooltips trigger for BS5 styling

GitOrigin-RevId: 0a446af5bc72f28ec8e2512fd4b248a6b78221a2
2024-11-05 09:04:46 +00:00

15 lines
443 B
TypeScript

import { Tooltip } from 'bootstrap-5'
const footerLanguageElement = document.querySelector(
'[data-ol-lang-selector-tooltip]'
) as Element
const allTooltips = document.querySelectorAll('[data-bs-toggle="tooltip"]')
// eslint-disable-next-line no-unused-vars
const footLangTooltip = new Tooltip(footerLanguageElement)
allTooltips.forEach(element => {
// eslint-disable-next-line no-unused-vars
const tooltip = new Tooltip(element)
})