diff --git a/common/templates/course_modes/choose.html b/common/templates/course_modes/choose.html index deec8f67a6..f4f8c6480c 100644 --- a/common/templates/course_modes/choose.html +++ b/common/templates/course_modes/choose.html @@ -18,7 +18,13 @@ var expandCallback = function(event) { event.preventDefault(); $(this).next('.expandable-area').slideToggle(); - $(this).parent().toggleClass('is-expanded'); + var title = $(this).parent(); + title.toggleClass('is-expanded'); + if (title.attr("aria-expanded") === "false") { + title.attr("aria-expanded", "true"); + } else { + title.attr("aria-expanded", "false"); + } } $(document).ready(function() { @@ -111,7 +117,10 @@ $(document).ready(function() { <%include file="_contribution.html" args="suggested_prices=suggested_prices, currency=currency, chosen_price=chosen_price, min_price=min_price"/>