Bug Incorrect use of aria-label for tooltips

There is a bug in this version
K

Kirby

Guest
When initializing a tooltip, the JS does set aria-label on the element which often isn't valid:

Code:

Code:
if (
        !$target.attr('aria-label')
        && !$target.attr('aria-labelledby')
        && !$.trim($target[0].textContent).length
)
{
        $target.attr('aria-label', title);
}

developer.mozilla.org

aria-label - Accessibility | MDN

The aria-label attribute defines a string value that labels an interactive element.
developer.mozilla.org
developer.mozilla.org
Not all elements can be given an accessible name. Neither aria-label nor aria-labelledby should be used...
Click to expand...

Read more

Continue reading...