MDL-74741 javascript: Set the role of d&d links to button
This commit is contained in:
@@ -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);
|
||||
|
||||
Vendored
+1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user