-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Support landmark navigation and toasts across iframes #3892
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
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
ac8b368
Toast
devongovett 335d3ff
Only render one toast provider
devongovett 6b8411e
Make it work with dialogs
devongovett 6a84bfd
todos
devongovett 3dff319
Improve focus management
devongovett 9f59895
Support programmatically closing toasts
devongovett ea014f0
Fix focus ring
devongovett a38ddb9
Hide toasts that are animating out so VoiceOver doesn't announce them.
devongovett 2156b26
Fix
devongovett 044495c
Fix 16
devongovett fd9d4ff
Merge branch 'main' of github.com:adobe/react-spectrum into toast
devongovett a90dea1
Refactor to use global store outside React tree
devongovett 8848f4e
Docs
devongovett 155076c
Split into ToastContainer and ToastQueue
devongovett 1d7c00d
Cleanup
devongovett a105fdf
Add aria docs
devongovett 6f4de0b
Stately docs
devongovett 1378c2a
Fix ariaHideOutside when added node includes a top layer element
devongovett aa07403
Skip hidden landmarks and fire a custom event when wrapping
devongovett e7f13b1
Add example of landmark navigation with iframe
devongovett 41d49a6
Add iframe example with toasts
devongovett 8607ba1
Fix iframe URL in CI
devongovett ffbd657
Address review comments
devongovett 92a5e97
Remove toast position from storybook
devongovett 84ac898
Use screen width to determine toast position rather than scale
devongovett b8372de
Fix centering of x in button
devongovett 6ce0e63
Update packages/@react-aria/landmark/test/useLandmark.test.tsx
devongovett 7c4d830
Apply suggestions from code review
devongovett 2536854
Merge branch 'main' into toast
LFDanLu 7b783d2
Merge branch 'toast' of github.com:adobe/react-spectrum into landmark…
devongovett 7e0b922
Merge branch 'main' of github.com:adobe/react-spectrum into landmark-…
devongovett File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The story we load in already has a main, I think there can only be one main per application. Right now Option+CMD+F6 for go to main is a little strange because it'll move through 3 different elements.
It's not pressing, just if we want to make the example more like how we'd expect people to implement it. Not that we can really do anything about enforcing it with iframes. Same thing with id's inside the iframe.
Maybe nothing to do for code, just need to make sure we state these things in the documentation.