From bfd121436b9bd2a4b29cc5f4502595698cf2712e Mon Sep 17 00:00:00 2001 From: Johan Persson Date: Tue, 3 Mar 2026 14:04:38 +0100 Subject: [PATCH] fix(ui): extend FieldLabelProps with native div element props FieldLabel renders a div and spreads restProps onto it, but FieldLabelProps didn't extend native div props. This meant attributes like aria-*, data-*, role, etc. couldn't be passed with type safety. Signed-off-by: Johan Persson --- packages/ui/src/components/FieldLabel/types.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/ui/src/components/FieldLabel/types.ts b/packages/ui/src/components/FieldLabel/types.ts index 89cea5fae4..f1d2857e06 100644 --- a/packages/ui/src/components/FieldLabel/types.ts +++ b/packages/ui/src/components/FieldLabel/types.ts @@ -45,4 +45,6 @@ export type FieldLabelOwnProps = { }; /** @public */ -export interface FieldLabelProps extends FieldLabelOwnProps {} +export interface FieldLabelProps + extends FieldLabelOwnProps, + Omit, keyof FieldLabelOwnProps> {}