Skip to content
Snippets Groups Projects
Commit b3c40a33 authored by Robert Lange's avatar Robert Lange
Browse files

refs #18034 [finc] inform screen readers about changes in cart

* set aria-live to polite
* set aria-atomic to true
parent 56548f9f
No related merge requests found
/* #18034 - inform screen reader about changes, eventually intregrate by PR into bootstrap cart.js - RL */
$(document).ready(function() {
var cart = document.getElementById("cartSummary");
if (cart !== undefined) {
cart.setAttribute("aria-live", "polite");
cart.setAttribute("aria-atomic", "true");
}
});
......@@ -5,7 +5,8 @@ return [
'check_item_statuses.js',
'lightbox_form_cache.js',
'covers.js',
'common-finc.js'
'common-finc.js',
'cart-finc.js'
],
'helpers' => [
'aliases' => [
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment