Remove large dimension from <Button> component
[MAILPOET-3545]
This commit is contained in:
@@ -57,31 +57,6 @@ export const WithoutIcons = () => (
|
||||
</p>
|
||||
<br />
|
||||
|
||||
<Heading level={3}>Large buttons</Heading>
|
||||
<p>
|
||||
<Button
|
||||
onClick={action('light large')}
|
||||
dimension="large"
|
||||
variant="light"
|
||||
>
|
||||
Light button
|
||||
</Button>
|
||||
<Button
|
||||
onClick={action('regular large')}
|
||||
dimension="large"
|
||||
>
|
||||
Regular button
|
||||
</Button>
|
||||
<Button
|
||||
onClick={action('link large')}
|
||||
dimension="large"
|
||||
variant="link"
|
||||
>
|
||||
Link button
|
||||
</Button>
|
||||
</p>
|
||||
<br />
|
||||
|
||||
<Heading level={3}>Disabled buttons</Heading>
|
||||
<p>
|
||||
<Button
|
||||
|
@@ -74,39 +74,6 @@ export const WithIcons = () => (
|
||||
</p>
|
||||
<br />
|
||||
|
||||
<Heading level={3}>Large buttons</Heading>
|
||||
<p>
|
||||
<Button
|
||||
onClick={action('only icon large')}
|
||||
dimension="large"
|
||||
variant="light"
|
||||
iconStart={icon}
|
||||
/>
|
||||
<Button
|
||||
onClick={action('icon start large')}
|
||||
dimension="large"
|
||||
iconStart={icon}
|
||||
>
|
||||
Icon start
|
||||
</Button>
|
||||
<Button
|
||||
onClick={action('both icons large')}
|
||||
dimension="large"
|
||||
variant="light"
|
||||
iconStart={icon}
|
||||
iconEnd={icon}
|
||||
>
|
||||
Both icons
|
||||
</Button>
|
||||
<Button
|
||||
onClick={action('only icon link large')}
|
||||
dimension="large"
|
||||
variant="link"
|
||||
iconStart={icon}
|
||||
/>
|
||||
</p>
|
||||
<br />
|
||||
|
||||
<Heading level={3}>Disabled buttons</Heading>
|
||||
<p>
|
||||
<Button
|
||||
|
@@ -3,7 +3,7 @@ import classnames from 'classnames';
|
||||
|
||||
interface Props extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
||||
children?: React.ReactNode;
|
||||
dimension?: 'extra-small' | 'small' | 'large';
|
||||
dimension?: 'extra-small' | 'small';
|
||||
variant?: 'light' | 'link';
|
||||
withSpinner?: boolean; // also disables href and onClick (via pointer-events in CSS)
|
||||
isDisabled?: boolean; // also disables href and onClick (via pointer-events in CSS)
|
||||
|
Reference in New Issue
Block a user