From dc0a1e462af84e993e4de6e121d9b922f394bb39 Mon Sep 17 00:00:00 2001 From: Eric Olkowski Date: Fri, 10 Jan 2025 08:22:47 -0500 Subject: [PATCH] Removed page section styling, added page section --- .../DataList/examples/DataListActionable.tsx | 148 +++++++++--------- 1 file changed, 77 insertions(+), 71 deletions(-) diff --git a/packages/react-core/src/demos/DataList/examples/DataListActionable.tsx b/packages/react-core/src/demos/DataList/examples/DataListActionable.tsx index f822097e180..7702748c5e5 100644 --- a/packages/react-core/src/demos/DataList/examples/DataListActionable.tsx +++ b/packages/react-core/src/demos/DataList/examples/DataListActionable.tsx @@ -14,7 +14,6 @@ import { MenuToggle, MenuToggleElement, PageSection, - PageSectionVariants, Title } from '@patternfly/react-core'; import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon'; @@ -34,95 +33,102 @@ export const DataListActionable: React.FunctionComponent = () => { return ( - + Projects This is a demo that showcases PatternFly Data List - - {!isDeleted && ( - + + + {!isDeleted && ( + + + + Single actionable Primary content + , + Single actionable Secondary content + ]} + /> + + + + + + )} + - Single actionable Primary content + Multi actions Primary content , - Single actionable Secondary content + Multi actions Secondary content ]} /> - + + Action + {/* Prevent default onClick functionality for example + purposes */} + event.preventDefault()}> + Link + + + Disabled Action + + event.preventDefault()} + > + Disabled Link + + + - )} - - - - Multi actions Primary content - , - Multi actions Secondary content - ]} - /> - - ) => ( - - - )} - isOpen={isOpen} - onOpenChange={(isOpen: boolean) => setIsOpen(isOpen)} - > - - Action - {/* Prevent default onClick functionality for example - purposes */} - event.preventDefault()}> - Link - - - Disabled Action - - event.preventDefault()}> - Disabled Link - - - - - - - + + ); };