-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: improving sd-header a11y #1668
base: main
Are you sure you want to change the base?
Conversation
🚀 Storybook has been deployed for branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After testing with VoiceOver in Safari, I feel we should have an announcement to when the drawer closes.
@@ -328,6 +328,7 @@ export default class SdDrawer extends SolidElement { | |||
variant="tertiary" | |||
size="lg" | |||
part="close-button" | |||
aria-expanded=${this.open ? 'true' : 'false'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aria-expanded=${this.open ? 'true' : 'false'} | |
aria-expanded=${this.open} |
@@ -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 */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can remove the "smaller screens..." part and just mention that these attributes should be set for accessibility purposes. What do you think?
Description:
Closes #1478 and #1519.
Definition of Reviewable: