MDL-74741 javascript: Set the role of d&d links to button

This commit is contained in:
Shamim Rezaie
2022-06-24 14:27:40 +10:00
parent 544947c9c7
commit f375246427
4 changed files with 5 additions and 2 deletions
@@ -471,6 +471,7 @@ Y.extend(DRAGDROP, Y.Base, {
listlink.setAttribute('data-drop-target', node.get('id'));
// Allow tabbing to the link.
listlink.setAttribute('tabindex', '0');
listlink.setAttribute('role', 'button');
// Set the event listeners for enter, space or click.
listlink.on('click', this.global_keyboard_drop, this);
File diff suppressed because one or more lines are too long
@@ -471,6 +471,7 @@ Y.extend(DRAGDROP, Y.Base, {
listlink.setAttribute('data-drop-target', node.get('id'));
// Allow tabbing to the link.
listlink.setAttribute('tabindex', '0');
listlink.setAttribute('role', 'button');
// Set the event listeners for enter, space or click.
listlink.on('click', this.global_keyboard_drop, this);
+1
View File
@@ -469,6 +469,7 @@ Y.extend(DRAGDROP, Y.Base, {
listlink.setAttribute('data-drop-target', node.get('id'));
// Allow tabbing to the link.
listlink.setAttribute('tabindex', '0');
listlink.setAttribute('role', 'button');
// Set the event listeners for enter, space or click.
listlink.on('click', this.global_keyboard_drop, this);