-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Controls: Improve the accessibility of the object control #31581
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
…entire document and pass it to the fields
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.
LGTM
4 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
View your CI Pipeline Execution ↗ for commit b82f413.
☁️ Nx Cloud last updated this comment at |
Package BenchmarksCommit: The following packages have significant changes to their size or dependencies:
|
Before | After | Difference | |
---|---|---|---|
Dependency count | 49 | 49 | 0 |
Self size | 31.87 MB | 31.85 MB | 🎉 -16 KB 🎉 |
Dependency size | 17.41 MB | 17.41 MB | 0 B |
Bundle Size Analyzer | Link | Link |
sb
Before | After | Difference | |
---|---|---|---|
Dependency count | 50 | 50 | 0 |
Self size | 1 KB | 1 KB | 🎉 -20 B 🎉 |
Dependency size | 49.27 MB | 49.26 MB | 🎉 -16 KB 🎉 |
Bundle Size Analyzer | Link | Link |
@storybook/cli
Before | After | Difference | |
---|---|---|---|
Dependency count | 216 | 216 | 0 |
Self size | 582 KB | 582 KB | 🎉 -20 B 🎉 |
Dependency size | 95.13 MB | 95.12 MB | 🎉 -16 KB 🎉 |
Bundle Size Analyzer | Link | Link |
@storybook/codemod
Before | After | Difference | |
---|---|---|---|
Dependency count | 185 | 185 | 0 |
Self size | 31 KB | 31 KB | 0 B |
Dependency size | 79.26 MB | 79.25 MB | 🎉 -16 KB 🎉 |
Bundle Size Analyzer | Link | Link |
Improves #24150 but does not close it. The PR improves accessibility. Before the PR, it was impossible to edit JSON controls with the keyboard. Now, it's very difficult but no longer impossible.
This branch is a rebase of #24580 that has suffered significant drift. Note that I am not the original PR author and the original PR had been approved by @JReinhold. I'm opening this new PR to provide a clean CI status and to free up @fscgustavo who wrote the original PR.
I'll edit the original issue with additional steps to bring it to completion.
Caution
I recommend squashing this PR, the commit history misuses semantic commits and could lead future maintainers to think these commits aren't supposed to make user-facing changes.
Greptile Summary
Improves keyboard accessibility for JSON controls in Storybook by introducing a new accessible accordion component and enhancing keyboard navigation patterns.
JsonNodeAccordion.tsx
with proper ARIA attributes and keyboard support for JSON tree editingJsonNodes.tsx
in favor of component-level keyboard handlersObject.tsx
for better screen reader supporteditButtonElement
prop fromJsonTree
component as part of accessibility improvements