From 82c82516e65175bbb4d54c56281a4cea6ee5cc36 Mon Sep 17 00:00:00 2001 From: Armagan Ersoz Date: Wed, 15 May 2024 10:26:15 +1000 Subject: [PATCH] Add the default heading level with the as prop for NAvlist.Group --- packages/react/src/NavList/NavList.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/react/src/NavList/NavList.tsx b/packages/react/src/NavList/NavList.tsx index 3d75cb700c6..14d934fe28a 100644 --- a/packages/react/src/NavList/NavList.tsx +++ b/packages/react/src/NavList/NavList.tsx @@ -259,7 +259,9 @@ const Group: React.FC = ({title, children, sx: sxProp = defau <> {/* Hide divider if the group is the first item in the list */} - + + {/* Setting up the default value for the heading level. TODO: API update to give flexibility to NavList.Group */} + {title} {children}