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

[skeleton] Close aside when Esc is pressed #2503

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

frontsideair
Copy link
Contributor

WHY are these changes introduced?

The aside doesn't follow ARIA APG about dismissing with Esc key

WHAT is this pull request doing?

Adds an event handler to dismiss the aside with the Esc key

HOW to test your changes?

  1. Click the search link on the header navigation
  2. Press Esc key to dismiss

Post-merge steps

Checklist

  • I've read the Contributing Guidelines
  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've added a changeset if this PR contains user-facing or noteworthy changes
  • I've added tests to cover my changes
  • I've added or updated the documentation

Copy link
Contributor

@scottdixon scottdixon left a comment

Choose a reason for hiding this comment

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

Thanks for another contribution @frontsideair! Love this addition. Left a few comments.

templates/skeleton/app/components/Aside.tsx Outdated Show resolved Hide resolved
templates/skeleton/app/components/Aside.tsx Show resolved Hide resolved
templates/skeleton/app/components/Aside.tsx Show resolved Hide resolved
@scottdixon
Copy link
Contributor

Thanks again @frontsideair. We're in the middle of a release but can merge this shortly after!

@scottdixon
Copy link
Contributor

CI failing on CSP tests which have been fixed. Confirmed tests pass with a rebase. Merging!

@scottdixon scottdixon merged commit 97a682f into Shopify:main Sep 30, 2024
5 of 6 checks passed
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.

3 participants