mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-01 17:51:39 -05:00
684731638a
BS5 Migration - Adding tooltips trigger for BS5 styling GitOrigin-RevId: 0a446af5bc72f28ec8e2512fd4b248a6b78221a2
15 lines
443 B
TypeScript
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)
|
|
})
|