From 8236a3d7c315bb394fde661480a4abf7d7e36de6 Mon Sep 17 00:00:00 2001 From: Johan Persson Date: Tue, 3 Mar 2026 14:03:59 +0100 Subject: [PATCH] fix(ui): extend ContainerProps with native div element props Container renders a div and spreads restProps onto it, but ContainerProps 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/Container/types.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/ui/src/components/Container/types.ts b/packages/ui/src/components/Container/types.ts index c6f9758fd2..375f3a4a38 100644 --- a/packages/ui/src/components/Container/types.ts +++ b/packages/ui/src/components/Container/types.ts @@ -23,7 +23,9 @@ export type ContainerOwnProps = { }; /** @public */ -export interface ContainerProps extends ContainerOwnProps { +export interface ContainerProps + extends ContainerOwnProps, + Omit, keyof ContainerOwnProps> { my?: SpaceProps['my']; mb?: SpaceProps['mb']; mt?: SpaceProps['mt'];