diff --git a/packages/components/src/components/drawer/drawer.ts b/packages/components/src/components/drawer/drawer.ts index 3b6c9d695..9d959a909 100644 --- a/packages/components/src/components/drawer/drawer.ts +++ b/packages/components/src/components/drawer/drawer.ts @@ -328,6 +328,7 @@ export default class SdDrawer extends SolidElement { variant="tertiary" size="lg" part="close-button" + aria-expanded=${this.open ? 'true' : 'false'} @click=${() => this.requestClose('close-button')} > diff --git a/packages/docs/src/stories/templates/header.stories.ts b/packages/docs/src/stories/templates/header.stories.ts index 7a9da8b52..1b621539d 100644 --- a/packages/docs/src/stories/templates/header.stories.ts +++ b/packages/docs/src/stories/templates/header.stories.ts @@ -11,7 +11,7 @@ export default { }, title: 'Templates/Header' }; - +/** **Accessibility hint:** aria-expanded and aria-controls may be use for smaller screens to make header accessible */ export const SampleA = { name: 'Header Sample A-01', render: () => html` @@ -26,13 +26,13 @@ export const SampleA = {
- Logo + Union Investment Homepage
- - + +
@@ -50,12 +50,12 @@ export const SampleA = {
- +
- +
@@ -97,11 +97,25 @@ export const SampleA = { - ` }; @@ -113,34 +127,34 @@ export const SampleA02 = {
- Logo + Union Investment Homepage
- - + +
- - + +
@@ -243,12 +275,12 @@ export const SampleB = {
- +
- +
@@ -276,11 +308,25 @@ export const SampleB = { - ` };