mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 03:47:40 -07:00
Use tooltips as aria-labels
This commit is contained in:
parent
7ab2670ea6
commit
09ee93d332
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue