diff --git a/js/views/drawerView.js b/js/views/drawerView.js index e4325f0a..f6fcce4f 100644 --- a/js/views/drawerView.js +++ b/js/views/drawerView.js @@ -26,8 +26,7 @@ class DrawerView extends Backbone.View { return { 'aria-modal': 'true', 'aria-labelledby': 'drawer-heading', - 'aria-hidden': 'true', - 'aria-expanded': 'false' + 'aria-hidden': 'true' }; } @@ -159,8 +158,7 @@ class DrawerView extends Backbone.View { this.setDrawerPosition(position); this.$el .removeClass('u-display-none') - .attr('aria-hidden', 'false') - .attr('aria-expanded', 'true'); + .attr('aria-hidden', 'false'); // Only trigger popup:opened if drawer is visible, pass popup manager drawer element if (!this._isVisible) { a11y.popupOpened(this.$el); @@ -192,7 +190,6 @@ class DrawerView extends Backbone.View { } $('.js-drawer-holder').scrollTop(0); - $('.js-nav-drawer-btn').attr('aria-expanded', true); Adapt.trigger('drawer:opened'); this.$el.addClass('anim-show-before'); @@ -236,7 +233,6 @@ class DrawerView extends Backbone.View { if (!force) await transitionsEnded(this.$el); this._customView = null; - $('.js-nav-drawer-btn').attr('aria-expanded', false); Adapt.trigger('drawer:closed'); this._isVisible = false; @@ -248,8 +244,7 @@ class DrawerView extends Backbone.View { this.$el .removeAttr('style') .addClass('u-display-none') - .attr('aria-hidden', 'true') - .attr('aria-expanded', 'false'); + .attr('aria-hidden', 'true'); this.setDrawerPosition(this._globalDrawerPosition); } diff --git a/js/views/navigationView.js b/js/views/navigationView.js index 7941d2ee..255f8a11 100644 --- a/js/views/navigationView.js +++ b/js/views/navigationView.js @@ -119,8 +119,7 @@ class NavigationView extends Backbone.View { const shouldIgnore = changes.every(([key]) => [ 'attributes.data-a11y-force-focus', 'attributes.tabindex', - 'attributes.aria-hidden', - 'attributes.aria-expanded' + 'attributes.aria-hidden' ].includes(key)); if (shouldIgnore) return; } diff --git a/templates/nav.hbs b/templates/nav.hbs index 9a69fe2a..a558f448 100644 --- a/templates/nav.hbs +++ b/templates/nav.hbs @@ -20,7 +20,7 @@ {{/each}} -