-
Notifications
You must be signed in to change notification settings - Fork 15
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: Safari a11y issues with links and nav group focus #583
Conversation
text-underline-offset: var(--gcds-link-underline-offset); | ||
text-decoration-style: solid; | ||
text-decoration-color: currentColor; | ||
text-decoration-thickness: var(--gcds-link-decoration-thickness); |
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.
Seems like this line is getting deleted by accident here - can we put this back in, please?
text-underline-offset: var(--gcds-link-underline-offset);
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.
Good catch!
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.
1 small change, but it looks good otherwise.
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.
Ship it!
Summary | Résumé
FIx a couple issues related to how Safari renders and handles focus.
Links not rendering with underline #576
Safari does not accept the
text-decoration
shorthand so switched to using all properties.Unable to click nested links in a top-nav nav-group #577
Safari handles focus a little differently from other browsers so the dropdown logic logic would fire before the
nav-link
click event could be called. Added a small timeout to thefocusout
listener function to allow thegcds-nav-link
click to go through.