diff --git a/.changeset/calm-insects-boil.md b/.changeset/calm-insects-boil.md new file mode 100644 index 00000000000..1aba232fec9 --- /dev/null +++ b/.changeset/calm-insects-boil.md @@ -0,0 +1,5 @@ +--- +"@primer/react": patch +--- + +Update NavList to use the new ActionList.GroupHeading API and Add an "as" prop to specify the heading level as default h3. (No changes expected in the rendered HTML) diff --git a/packages/react/src/NavList/NavList.tsx b/packages/react/src/NavList/NavList.tsx index 3d75cb700c6..2da5b8bcef2 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's heading level */} + {title} {children}