mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-74741 javascript: Set the role of d&d links to button
This commit is contained in:
parent
584468c6b0
commit
1657669d98
@ -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
@ -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);
|
||||
|
1
lib/yui/src/dragdrop/js/dragdrop.js
vendored
1
lib/yui/src/dragdrop/js/dragdrop.js
vendored
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user