An open source design system that's fully customizable and agent ready
TypeScript
fix(AlertDialog,AppShell): capture and forward rest props (#3876)
Cindy Zhangbf7c0dad7726
diff --git a/packages/core/src/AlertDialog/AlertDialog.tsx b/packages/core/src/AlertDialog/AlertDialog.tsxindex 0a4698bb7e..fca5fbface 100644--- a/packages/core/src/AlertDialog/AlertDialog.tsx+++ b/packages/core/src/AlertDialog/AlertDialog.tsx@@ -132,6 +132,7 @@ export function AlertDialog({className,style,'data-testid': testId,+ ...rest}: AlertDialogProps) {const titleId = useId();const descriptionId = useId();@@ -142,6 +143,7 @@ export function AlertDialog({return (<Dialog+ {...rest}ref={ref}isOpen={isOpen}isInline={isInline}diff --git a/packages/core/src/AppShell/AppShell.tsx b/packages/core/src/AppShell/AppShell.tsxindex 890ef05c6c..d485433c91 100644--- a/packages/core/src/AppShell/AppShell.tsx+++ b/packages/core/src/AppShell/AppShell.tsx@@ -470,6 +470,7 @@ export function AppShell({className,style,ref,+ ...rest}: AppShellProps) {// =========================================================================// Parse mobileNav prop — normalize to config, custom element, or disabled@@ -768,6 +769,7 @@ export function AppShell({return (<AppShellMobileContext value={mobileContextValue}><div+ {...rest}ref={mergeRefs(ref, shellRef)}data-testid={dataTestId}{...mergeProps(