Display popover on harvey balls not in a zone

This wraps bootstrap styles in `sqm_bootstrap` which can now selectively
import specific desired pieces of bootstrap styling
This commit is contained in:
Liam Morley 2021-10-27 15:16:41 -04:00
parent 00a0e5868c
commit 4fafe2cb50
12 changed files with 99 additions and 26 deletions

View file

@ -1,3 +1,5 @@
import { Popover } from "bootstrap";
export function initializeListenersForNavDropdowns() {
const schoolDropdown = document.querySelector("#select-school");
if (schoolDropdown) {
@ -14,3 +16,11 @@ export function initializeListenersForNavDropdowns() {
});
}
}
export function initializePopovers() {
document
.querySelectorAll('[data-bs-toggle="popover"]')
.forEach(popoverElement => {
new Popover(popoverElement, { trigger: 'hover focus' })
})
}