From f3789b13c3c5a0d9d5994340a63fe2409a554f7e Mon Sep 17 00:00:00 2001 From: Eric Olkowski Date: Wed, 14 Aug 2024 13:10:49 -0400 Subject: [PATCH] Added noOffset modifier to selectable examples --- .../components/Card/examples/CardClickableSelectable.tsx | 9 ++++++--- .../src/components/Card/examples/CardSelectable.tsx | 9 ++++++--- .../components/Card/examples/CardSingleSelectable.tsx | 9 ++++++--- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/packages/react-core/src/components/Card/examples/CardClickableSelectable.tsx b/packages/react-core/src/components/Card/examples/CardClickableSelectable.tsx index 76226a796fb..c72516ff21f 100644 --- a/packages/react-core/src/components/Card/examples/CardClickableSelectable.tsx +++ b/packages/react-core/src/components/Card/examples/CardClickableSelectable.tsx @@ -61,7 +61,8 @@ export const CardClickable: React.FunctionComponent = () => { selectableActionId: id1, selectableActionAriaLabelledby: 'clickable-selectable-card-example-1', name: id1, - onChange + onChange, + hasNoOffset: true }} > @@ -84,7 +85,8 @@ export const CardClickable: React.FunctionComponent = () => { selectableActionId: id2, selectableActionAriaLabelledby: 'clickable-selectable-card-example-2', name: id2, - onChange + onChange, + hasNoOffset: true }} > Second Card @@ -110,7 +112,8 @@ export const CardClickable: React.FunctionComponent = () => { selectableActionId: id3, selectableActionAriaLabelledby: 'clickable-selectable-card-example-3', name: id3, - onChange + onChange, + hasNoOffset: true }} > diff --git a/packages/react-core/src/components/Card/examples/CardSelectable.tsx b/packages/react-core/src/components/Card/examples/CardSelectable.tsx index cb32f98bac6..83aac5c128f 100644 --- a/packages/react-core/src/components/Card/examples/CardSelectable.tsx +++ b/packages/react-core/src/components/Card/examples/CardSelectable.tsx @@ -53,7 +53,8 @@ export const SelectableCard: React.FunctionComponent = () => { selectableActionId: id1, selectableActionAriaLabelledby: 'selectable-card-example-1', name: id1, - onChange + onChange, + hasNoOffset: true }} > First card @@ -71,7 +72,8 @@ export const SelectableCard: React.FunctionComponent = () => { selectableActionId: id2, selectableActionAriaLabelledby: 'selectable-card-example-2', name: id2, - onChange + onChange, + hasNoOffset: true }} > Second card @@ -90,7 +92,8 @@ export const SelectableCard: React.FunctionComponent = () => { selectableActionId: id3, selectableActionAriaLabelledby: 'selectable-card-example-3', name: id3, - onChange + onChange, + hasNoOffset: true }} > Third card diff --git a/packages/react-core/src/components/Card/examples/CardSingleSelectable.tsx b/packages/react-core/src/components/Card/examples/CardSingleSelectable.tsx index b8e599e9575..63db53153e8 100644 --- a/packages/react-core/src/components/Card/examples/CardSingleSelectable.tsx +++ b/packages/react-core/src/components/Card/examples/CardSingleSelectable.tsx @@ -20,7 +20,8 @@ export const SingleSelectableCard: React.FunctionComponent = () => { selectableActionAriaLabelledby: 'single-selectable-card-example-1', name: 'single-selectable-card-example', variant: 'single', - onChange + onChange, + hasNoOffset: true }} > First card @@ -34,7 +35,8 @@ export const SingleSelectableCard: React.FunctionComponent = () => { selectableActionAriaLabelledby: 'single-selectable-card-example-2', name: 'single-selectable-card-example', variant: 'single', - onChange + onChange, + hasNoOffset: true }} > Second card @@ -48,7 +50,8 @@ export const SingleSelectableCard: React.FunctionComponent = () => { selectableActionAriaLabelledby: 'single-selectable-card-example-3', name: 'single-selectable-card-example', variant: 'single', - onChange + onChange, + hasNoOffset: true }} > Third card