Repository navigation
fix: FormItemLayout does not apply item id correctly - #49593
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
czenko
approved these changes
Aug 27, 2026
Contributor
Braintrust eval report
|
djhi
added a commit
that referenced
this pull request
Aug 27, 2026
Reverts #49593 because we currently provide `id` manually in some places and that breaks many tests. We didn't see the failures because the PR only modified `ui-patterns` which isn't in the paths checked to actually run the tests (this must be fixed too). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved form accessibility by correctly associating labels with their corresponding fields in React form layouts. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
claude Bot
pushed a commit
that referenced
this pull request
Aug 27, 2026
Picks up the revert of #49593 (FormItemLayout item id) from master so CI runs against a base where the studio unit tests and E2E specs pass.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
<FormItemLayout>does not apply item id correctly. This can be seen on https://supabase.com/design-system/docs/ui-patterns/forms: open the devtool and check the form items labels. They have noforattribute. This makes it harder to correctly test and is an accessibility issue.Axe devtool actually report it
Solution
When inside React Hook Form,
<FormItemLayout>actually generate anid(via<FormItem>). However, thisidis overridden in<FormLayout>and read from context by<FormLabel>. Simply removing this line fixes it and correctly binds the label to its input