diff --git a/libs/barista-components/expandable-panel/src/expandable-panel-trigger.ts b/libs/barista-components/expandable-panel/src/expandable-panel-trigger.ts index 0cbf868d67..f98630b07c 100644 --- a/libs/barista-components/expandable-panel/src/expandable-panel-trigger.ts +++ b/libs/barista-components/expandable-panel/src/expandable-panel-trigger.ts @@ -33,6 +33,8 @@ import { DtExpandablePanel } from './expandable-panel'; '[attr.disabled]': 'dtExpandablePanel && dtExpandablePanel.disabled ? true: null', '[attr.aria-disabled]': 'dtExpandablePanel && dtExpandablePanel.disabled', + '[attr.aria-expanded]': 'dtExpandablePanel && dtExpandablePanel.expanded', + '[attr.aria-controls]': 'dtExpandablePanel && dtExpandablePanel._uniqueId', '[tabindex]': 'dtExpandablePanel && dtExpandablePanel.disabled ? -1 : 0', '(click)': '_handleClick()', '(keydown)': '_handleKeydown($event)', diff --git a/libs/barista-components/expandable-panel/src/expandable-panel.html b/libs/barista-components/expandable-panel/src/expandable-panel.html index ede028cc2b..d11cb920f1 100644 --- a/libs/barista-components/expandable-panel/src/expandable-panel.html +++ b/libs/barista-components/expandable-panel/src/expandable-panel.html @@ -1,3 +1,3 @@ -