plugin updates

This commit is contained in:
Tony Volpe
2024-07-16 13:57:46 +00:00
parent 41f50eacc4
commit 8f93917880
1529 changed files with 259452 additions and 25451 deletions

View File

@@ -0,0 +1,20 @@
/* global Cookies */
jQuery( function( $ ) {
// Select all elements with the class [role="alert"] attribute that contain text
var notices = $('[role="alert"]').filter(function() {
return $(this).text().trim().length > 0;
});
if (notices.length > 0) {
/**
* Queuing the focus event at last of the event queue
* to override any other focus events in case of critical error.
* For example, "Skip to content" was being focused just after
* the error, resulting in the voiceover breaking the message
* in between.
*/
setTimeout(function() {
$(notices[0]).attr('tabindex', '-1').focus();
});
}
});