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

This commit is contained in:
Shamim Rezaie 2022-06-24 14:21:51 +10:00
parent 584468c6b0
commit 1657669d98
4 changed files with 5 additions and 2 deletions

View File

@ -483,6 +483,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

View File

@ -483,6 +483,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);

View File

@ -481,6 +481,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);