-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Controls: Improve the accessibility of the object control #24580
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
Controls: Improve the accessibility of the object control #24580
Conversation
e846170 to
d54fea5
Compare
JReinhold
left a comment
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.
This looks great, thanks!
-
There are some UI regressions, the left margin for the object/arrays seems to have increased. You can see the differences here in Chromatic, could you take a look at that? https://www.chromatic.com/test?appId=635781f3500dd2c49e189caf&id=653a54b591e4e555d209e0f4
-
It appears the tabindex order is reversed for "Save"/"Cancel" when adding a new property, could you look at that? See this recording for what I mean:

I'd love you to QA this as well @cdedreuille
588fb59 to
67972e2
Compare
The margin-right of the button was adjusted ✔️ Do you think the Safari layout variation is still bad for the control? |
fscgustavo
left a comment
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 forgot to submit the comment 😅
| <span className="rejt-edit-form" style={style.editForm}> | ||
| {inputElementLayout} {cancelButtonElementLayout} | ||
| {editButtonElementLayout} | ||
| {inputElementLayout} {editButtonElementLayout} |
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 removed the order style of the button and adjusted the order of the elements in the DOM
Thanks to your comment, I was able to see that the edit buttons never appear due to a display none style
Are there any intentions to make these buttons appear again, or can we remove this piece of code?
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.
Are there any intentions to make these buttons appear again, or can we remove this piece of code?
I think we can remove it just fine.
JReinhold
left a comment
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.
Sorry for the delay and thanks for your patience. I think this looks great.
If you could resolve the merge conflicts then I think this is good to go.
67972e2 to
1f28b93
Compare
…entire document and pass it to the fields
880edfb to
5916e29
Compare
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 0282dbb. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
5916e29 to
f422c90
Compare
|
There's a visual regression introduced for the arrays, you can see the visual diff here: https://www.chromatic.com/test?appId=635781f3500dd2c49e189caf&id=66450f76b7ff051578a13b9b And in this story: https://635781f3500dd2c49e189caf-lcdshmxzdy.chromatic.com/?path=/story/blocks-controls-object--array It looks like an |
f422c90 to
0282dbb
Compare
@JReinhold The bug has been resolved! It was likely lost during the conflict resolution. I have also deleted the edit button that was already hidden with CSS. Thanks for getting back to me! I am available if any new important changes are required :) |
|
@JReinhold I'd suggest merging this PR's content as it is. I've rebased and opened #31581 so we get a clean CI status and can work on merging this. I'll also update the issue with additional steps to close it, as I don't believe this PR itself is enough to make the component accessible. I just don't feel comfortable giving @fscgustavo more work a year after he has submitted this, and I think it would be better to continue work on a follow-up PR. |
Closes #24150
What I did
Before
unable.to.navigate.tab.groups.webm
After
Screen.Recording.2023-10-25.at.19.58.28.mov
Checklist for Contributors
Testing
The changes in this PR are covered in the following automated tests:
Manual testing
This is the object and the path that I used to test:
file path: sandbox/react-vite-default-ts/src/stories/Header.stories.ts
object:
Documentation
MIGRATION.MD
Checklist for Maintainers
When this PR is ready for testing, make sure to add
ci:normal,ci:mergedorci:dailyGH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found incode/lib/cli/src/sandbox-templates.tsMake sure this PR contains one of the labels below:
Available labels
bug: Internal changes that fixes incorrect behavior.maintenance: User-facing maintenance tasks.dependencies: Upgrading (sometimes downgrading) dependencies.build: Internal-facing build tooling & test updates. Will not show up in release changelog.cleanup: Minor cleanup style change. Will not show up in release changelog.documentation: Documentation only changes. Will not show up in release changelog.feature request: Introducing a new feature.BREAKING CHANGE: Changes that break compatibility in some way with current major version.other: Changes that don't fit in the above categories.🦋 Canary release
This PR does not have a canary release associated. You can request a canary release of this pull request by mentioning the
@storybookjs/coreteam here.core team members can create a canary release here or locally with
gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=<PR_NUMBER>