From 68e0cc14686e522fdab52195bfadb686779b76d4 Mon Sep 17 00:00:00 2001 From: Johan Persson Date: Tue, 3 Mar 2026 14:03:24 +0100 Subject: [PATCH] fix(ui): extend AlertProps with native div element props Alert renders a div and spreads restProps onto it, but AlertProps 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/Alert/types.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/ui/src/components/Alert/types.ts b/packages/ui/src/components/Alert/types.ts index c0829899f4..ce36d4c5fd 100644 --- a/packages/ui/src/components/Alert/types.ts +++ b/packages/ui/src/components/Alert/types.ts @@ -34,4 +34,10 @@ export type AlertOwnProps = { * * @public */ -export interface AlertProps extends MarginProps, AlertOwnProps {} +export interface AlertProps + extends MarginProps, + AlertOwnProps, + Omit< + React.ComponentPropsWithoutRef<'div'>, + keyof AlertOwnProps | keyof MarginProps + > {}