From 3af53f9ea266fd993352378ff1c713fa5c3c583d Mon Sep 17 00:00:00 2001 From: Sam Richardson Date: Tue, 12 Dec 2023 10:09:57 -0500 Subject: [PATCH] fix(expansion-panel): remove invalid aria-expanded attribute set on header --- src/lib/expansion-panel/expansion-panel-adapter.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/lib/expansion-panel/expansion-panel-adapter.ts b/src/lib/expansion-panel/expansion-panel-adapter.ts index c6377fb9e..189e29009 100644 --- a/src/lib/expansion-panel/expansion-panel-adapter.ts +++ b/src/lib/expansion-panel/expansion-panel-adapter.ts @@ -51,8 +51,6 @@ export class ExpansionPanelAdapter extends BaseAdapter openIconElement.open = true; } } - - this._headerElement.setAttribute('aria-expanded', open ? 'true' : 'false'); } public setHeaderVisibility(visible: boolean): void { @@ -125,7 +123,6 @@ export class ExpansionPanelAdapter extends BaseAdapter this._contentElement.style.height = `${this._contentElement.scrollHeight}px`; } this._contentElement.style.opacity = '1'; - this._headerElement.setAttribute('aria-expanded', 'true'); if (openIconElement) { openIconElement.open = true; } @@ -136,7 +133,6 @@ export class ExpansionPanelAdapter extends BaseAdapter this._contentElement.style.height = '0px'; } this._contentElement.style.opacity = '0'; - this._headerElement.setAttribute('aria-expanded', 'false'); if (openIconElement) { openIconElement.open = false; } @@ -158,7 +154,6 @@ export class ExpansionPanelAdapter extends BaseAdapter } this._contentElement.style.removeProperty('visibility'); this._contentElement.style.removeProperty('opacity'); - this._headerElement.setAttribute('aria-expanded', 'true'); if (openIconElement) { openIconElement.open = true; } @@ -170,7 +165,6 @@ export class ExpansionPanelAdapter extends BaseAdapter } this._contentElement.style.opacity = '0'; this._contentElement.style.visibility = 'hidden'; - this._headerElement.setAttribute('aria-expanded', 'false'); if (openIconElement) { openIconElement.open = false; }