Skip to content
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ const useStyles = makeStyles({
description: { margin: '0 0 12px' },

card: {
width: '400px',
maxWidth: '100%',
maxWidth: '400px',
width: '100%',
height: 'fit-content',
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const useStyles = makeStyles({
description: { margin: '0 0 12px' },

card: {
width: '480px',
maxWidth: '100%',
maxWidth: '480px',
width: '100%',
height: 'fit-content',
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ const resolveAsset = (asset: string) => {
const useStyles = makeStyles({
card: {
margin: 'auto',
width: '720px',
maxWidth: '100%',
maxWidth: '720px',
width: '100%',
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ const useStyles = makeStyles({
gap: '16px',
},
card: {
width: '400px',
maxWidth: '100%',
maxWidth: '400px',
minWidth: '230px',
width: '100%',
},
});

Expand Down Expand Up @@ -60,7 +61,7 @@ export const Disabled = (): JSXElement => {
<div className={styles.container}>
<div>
<h3>Default Card</h3>
<div style={{ display: 'flex', gap: '16px' }}>
<div style={{ display: 'flex', flexWrap: 'wrap', gap: '16px' }}>
<Card className={styles.card}>
<CardContentExample />
</Card>
Expand All @@ -73,7 +74,7 @@ export const Disabled = (): JSXElement => {

<div>
<h3>Interactive Card</h3>
<div style={{ display: 'flex', gap: '16px' }}>
<div style={{ display: 'flex', flexWrap: 'wrap', gap: '16px' }}>
<Card className={styles.card} onClick={() => alert('Card clicked')}>
<CardContentExample />
</Card>
Expand All @@ -87,7 +88,7 @@ export const Disabled = (): JSXElement => {
<div>
<h3>Selectable Card</h3>
<div style={{ display: 'flex', flexDirection: 'column', rowGap: '16px' }}>
<div style={{ display: 'flex', gap: '16px' }}>
<div style={{ display: 'flex', flexWrap: 'wrap', gap: '16px' }}>
<Card
className={styles.card}
selected={isSelected1}
Expand All @@ -100,7 +101,7 @@ export const Disabled = (): JSXElement => {
</Card>
</div>

<div style={{ display: 'flex', gap: '16px' }}>
<div style={{ display: 'flex', flexWrap: 'wrap', gap: '16px' }}>
<Card
className={styles.card}
selected={isSelected2}
Expand All @@ -118,7 +119,7 @@ export const Disabled = (): JSXElement => {

<div>
<h3>Outline Card</h3>
<div style={{ display: 'flex', gap: '16px' }}>
<div style={{ display: 'flex', flexWrap: 'wrap', gap: '16px' }}>
<Card className={styles.card} appearance="outline">
<CardContentExample />
</Card>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const useStyles = makeStyles({
description: { margin: '0 0 12px' },

card: {
width: '400px',
maxWidth: '100%',
maxWidth: '400px',
width: '100%',
height: 'fit-content',
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ const useStyles = makeStyles({
},

card: {
width: '360px',
maxWidth: '100%',
width: '100%',
height: 'fit-content',
},

section: {
width: 'fit-content',
maxWidth: '360px',
width: '100%',
},

title: { margin: '0 0 12px' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const useStyles = makeStyles({
},

card: {
width: '400px',
maxWidth: '100%',
maxWidth: '400px',
width: '100%',
height: 'fit-content',
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const useStyles = makeStyles({
},

card: {
width: '400px',
maxWidth: '100%',
maxWidth: '400px',
width: '100%',
height: 'fit-content',
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const useStyles = makeStyles({
title: { margin: '0 0 12px' },

card: {
width: '300px',
maxWidth: '100%',
maxWidth: '300px',
width: '100%',
height: 'fit-content',
},

Expand Down Expand Up @@ -112,8 +112,9 @@ export const Size = (): JSXElement => {
Size.parameters = {
docs: {
description: {
story: `Size options are mainly to provide variety, and consistency when using cards for different usages. It
relates to padding and border-radius and not so much the actual dimensions of the card.`,
story:
'Size options are mainly to provide variety, and consistency when using cards for different usages.' +
'It relates to padding and border-radius and not so much the actual dimensions of the card.',
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ const useStyles = makeStyles({
},

card: {
width: '280px',
maxWidth: '280px',
width: '100%',
height: 'fit-content',
},

Expand Down Expand Up @@ -57,6 +58,7 @@ const useStyles = makeStyles({
gap: '16px',
display: 'flex',
flexDirection: 'column',
width: '100%',
},
});

Expand Down
Loading