Use tooltips as aria-labels

This commit is contained in:
Freeplay 2023-05-10 15:15:27 -04:00
parent 257bf2bf01
commit de1c25f9db

View file

@ -20,6 +20,12 @@ export default {
self.hideTimer = null; self.hideTimer = null;
self.checkTimer = null; self.checkTimer = null;
if (!binding.modifiers.noLabel) {
if (!document.body.contains(el)) return;
if (self.text == null) return;
el.setAttribute("aria-label", self.text);
}
self.close = () => { self.close = () => {
if (self._close) { if (self._close) {
window.clearInterval(self.checkTimer); window.clearInterval(self.checkTimer);