diff --git a/calendar/js/et2_widget_event.js b/calendar/js/et2_widget_event.js index 9d2d5fcc2b..68ca793010 100644 --- a/calendar/js/et2_widget_event.js +++ b/calendar/js/et2_widget_event.js @@ -237,6 +237,7 @@ var et2_calendar_event = /** @class */ (function (_super) { // Let timegrid always get the drag .droppable('option', 'greedy', false); } + var tooltip = jQuery(this._tooltip()).text(); // DOM nodes this.div // Set full day flag @@ -250,6 +251,9 @@ var et2_calendar_event = /** @class */ (function (_super) { .attr('data-recur_type', event.recur_type) .attr('data-resize', event.whole_day ? 'WD' : '' + (event.recur_type ? 'S' : '')) .attr('data-priority', event.priority) + // Accessibility + .attr("tabindex", 0) + .attr("aria-label", tooltip) // Remove any category classes .removeClass(function (index, css) { return (css.match(/(^|\s)cat_\S+/g) || []).join(' '); @@ -437,24 +441,24 @@ var et2_calendar_event = /** @class */ (function (_super) { } for (var type_name in this.options.value.participant_types) { if (type_name) { - participants += '
' + type_name + ':
';
+ participants += '
' + type_name + ':
';
participants += this.options.value.participant_types[type_name].join("
");
}
}
return '
'+type_name+':
';
+ participants += '
'+type_name+':
';
participants += this.options.value.participant_types[type_name].join("
");
}
}
@@ -565,17 +569,17 @@ export class et2_calendar_event extends et2_valueWidget implements et2_IDetached
return '