diff --git a/src/ActionList/Group.tsx b/src/ActionList/Group.tsx index 97a39107306..627fe7e8497 100644 --- a/src/ActionList/Group.tsx +++ b/src/ActionList/Group.tsx @@ -19,7 +19,7 @@ export type ActionListGroupProps = { */ variant?: 'subtle' | 'filled' /** - * Primary text which names a `Group`. + * @deprecated('Use `ActionList.GroupHeading` instead') */ title?: string /** @@ -71,6 +71,11 @@ export const Group: React.FC> = ({ groupHeadingId = id } + warning( + title && listRole === undefined, + 'title prop is deprecated in ActionList.Group. Please use ActionList.GroupHeading instead for improved semantics', + ) + return (