Skip to content
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

Merged
merged 4 commits into from
Jul 10, 2024

Conversation

ethanWallace
Copy link
Collaborator

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 the focusout listener function to allow the gcds-nav-link click to go through.

text-underline-offset: var(--gcds-link-underline-offset);
text-decoration-style: solid;
text-decoration-color: currentColor;
text-decoration-thickness: var(--gcds-link-decoration-thickness);
Copy link
Collaborator

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);

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

Copy link
Collaborator

@melaniebmn melaniebmn left a 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.

Copy link
Collaborator

@melaniebmn melaniebmn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it!

@ethanWallace ethanWallace merged commit d7c3fb9 into main Jul 10, 2024
3 checks passed
@ethanWallace ethanWallace deleted the fix/safari-a11y-issues branch July 10, 2024 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants