Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/ActionList/Group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type ActionListGroupProps = {
*/
variant?: 'subtle' | 'filled'
/**
* Primary text which names a `Group`.
* @deprecated('Use `ActionList.GroupHeading` instead')
*/
title?: string
/**
Expand Down Expand Up @@ -71,6 +71,11 @@ export const Group: React.FC<React.PropsWithChildren<ActionListGroupProps>> = ({
groupHeadingId = id
}

warning(
title && listRole === undefined,
'title prop is deprecated in ActionList.Group. Please use ActionList.GroupHeading instead for improved semantics',
)

return (
<Box
as="li"
Expand Down