Skip to content

Commit 1b8b96e

Browse files
authored
Update packages/react/src/ActionList/Group.tsx
1 parent 81df17b commit 1b8b96e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react/src/ActionList/Group.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export const Group: React.FC<React.PropsWithChildren<ActionListGroupProps>> = ({
9797
// because the heading is hidden from the accessibility tree and only used for presentation role.
9898
// We will instead use aria-label to label the list. See a line below.
9999
aria-labelledby={listRole ? undefined : groupHeadingId}
100-
aria-label={listRole ? title ?? (slots.groupHeading?.props.children as string) : undefined}
100+
aria-label={listRole ? (title ?? (slots.groupHeading?.props.children as string)) : undefined}
101101
role={role || (listRole && 'group')}
102102
>
103103
{slots.groupHeading ? childrenWithoutSlots : props.children}

0 commit comments

Comments
 (0)