- 
                Notifications
    You must be signed in to change notification settings 
- Fork 641
TreeView: Add indication for "Loading" for screen readers #4969
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
Conversation
| 🦋 Changeset detectedLatest commit: 3861150 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
 Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR | 
| size-limit report 📦
 | 
| @ericwbailey, I added you as a reviewer as I'd love your opinion on this addition to  Stems from https://github.com/github/primer/issues/3448 | 
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.
🚀
| setLoadingFocused(false) | ||
| } | ||
| } else if (state === 'loading') { | ||
| if (!parentElement) return | 
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.
nit: could bubble up as well and return early on 619, since other if statement checks and returns for same condition on 6221
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 see! So adding if (!parentElement) return at the top rather than in both conditionals. Thank you for the suggestion!
Closes https://github.com/github/primer/issues/3448
TreeViewannounces when content has loaded, but doesn't announce when content is loading. This PR adds "Loading" to TreeView's live region when content is actively loading.Changelog
Changed
TreeViewwhen loading asynchronous contentRollout strategy
Testing & Reviewing
Merge checklist