Revert "fix: FormItemLayout does not apply item id correctly" (#49635)

Reverts supabase/supabase#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 -->
This commit is contained in:
Gildas Garcia authored and GitHub committed 2026-08-27 09:34:10 +01:00
1 parent a8240e3da8
commit 57a6f74407
1 file changed
+1
@@ -398,6 +398,7 @@ export const FormLayout = React.forwardRef<
<FormLabel
className="text-foreground flex gap-2 items-center wrap-break-word"
data-formlayout-id="formLabel"
htmlFor={props.name || id}
>
<LabelContents />
</FormLabel>