MDL-81608 core: Label YUI dragdrop handles appropriately

The YUI dragdrop handles rely on the button's title attribute for its
accessible label. We should label it appropriately using the
aria-label attribute.
This commit is contained in:
Jun Pataleta
2026-03-10 17:59:27 +08:00
parent c5b9e1af04
commit d348e7a481
4 changed files with 5 additions and 2 deletions
@@ -183,6 +183,7 @@ Y.extend(DRAGDROP, Y.Base, {
var dragelement = Y.Node.create('<span></span>')
.addClass(classname)
.setAttribute('title', title)
.setAttribute('aria-label', title)
.setAttribute('tabIndex', 0)
.setAttribute('data-draggroups', this.groups)
.setAttribute('role', 'button');
File diff suppressed because one or more lines are too long
@@ -183,6 +183,7 @@ Y.extend(DRAGDROP, Y.Base, {
var dragelement = Y.Node.create('<span></span>')
.addClass(classname)
.setAttribute('title', title)
.setAttribute('aria-label', title)
.setAttribute('tabIndex', 0)
.setAttribute('data-draggroups', this.groups)
.setAttribute('role', 'button');
+1
View File
@@ -181,6 +181,7 @@ Y.extend(DRAGDROP, Y.Base, {
var dragelement = Y.Node.create('<span></span>')
.addClass(classname)
.setAttribute('title', title)
.setAttribute('aria-label', title)
.setAttribute('tabIndex', 0)
.setAttribute('data-draggroups', this.groups)
.setAttribute('role', 'button');