Skip to content

Commit

Permalink
Added noOffset modifier to selectable examples
Browse files Browse the repository at this point in the history
  • Loading branch information
thatblindgeye committed Aug 14, 2024
1 parent d51d88b commit f3789b1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ export const CardClickable: React.FunctionComponent = () => {
selectableActionId: id1,
selectableActionAriaLabelledby: 'clickable-selectable-card-example-1',
name: id1,
onChange
onChange,
hasNoOffset: true
}}
>
<CardTitle>
Expand All @@ -84,7 +85,8 @@ export const CardClickable: React.FunctionComponent = () => {
selectableActionId: id2,
selectableActionAriaLabelledby: 'clickable-selectable-card-example-2',
name: id2,
onChange
onChange,
hasNoOffset: true
}}
>
<CardTitle>Second Card</CardTitle>
Expand All @@ -110,7 +112,8 @@ export const CardClickable: React.FunctionComponent = () => {
selectableActionId: id3,
selectableActionAriaLabelledby: 'clickable-selectable-card-example-3',
name: id3,
onChange
onChange,
hasNoOffset: true
}}
>
<CardTitle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ export const SelectableCard: React.FunctionComponent = () => {
selectableActionId: id1,
selectableActionAriaLabelledby: 'selectable-card-example-1',
name: id1,
onChange
onChange,
hasNoOffset: true
}}
>
<CardTitle>First card</CardTitle>
Expand All @@ -71,7 +72,8 @@ export const SelectableCard: React.FunctionComponent = () => {
selectableActionId: id2,
selectableActionAriaLabelledby: 'selectable-card-example-2',
name: id2,
onChange
onChange,
hasNoOffset: true
}}
>
<CardTitle>Second card</CardTitle>
Expand All @@ -90,7 +92,8 @@ export const SelectableCard: React.FunctionComponent = () => {
selectableActionId: id3,
selectableActionAriaLabelledby: 'selectable-card-example-3',
name: id3,
onChange
onChange,
hasNoOffset: true
}}
>
<CardTitle>Third card</CardTitle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}}
>
<CardTitle>First card</CardTitle>
Expand All @@ -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
}}
>
<CardTitle>Second card</CardTitle>
Expand All @@ -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
}}
>
<CardTitle>Third card</CardTitle>
Expand Down

0 comments on commit f3789b1

Please sign in to comment.