Remove large dimension from <Button> component
[MAILPOET-3545]
This commit is contained in:
@@ -74,11 +74,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mailpoet-button-large {
|
|
||||||
min-height: 48px;
|
|
||||||
padding: 13px 24px 11px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mailpoet-button-light {
|
.mailpoet-button-light {
|
||||||
background: $color-secondary-light;
|
background: $color-secondary-light;
|
||||||
color: $color-secondary;
|
color: $color-secondary;
|
||||||
|
@@ -57,31 +57,6 @@ export const WithoutIcons = () => (
|
|||||||
</p>
|
</p>
|
||||||
<br />
|
<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>
|
<Heading level={3}>Disabled buttons</Heading>
|
||||||
<p>
|
<p>
|
||||||
<Button
|
<Button
|
||||||
|
@@ -74,39 +74,6 @@ export const WithIcons = () => (
|
|||||||
</p>
|
</p>
|
||||||
<br />
|
<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>
|
<Heading level={3}>Disabled buttons</Heading>
|
||||||
<p>
|
<p>
|
||||||
<Button
|
<Button
|
||||||
|
@@ -3,7 +3,7 @@ import classnames from 'classnames';
|
|||||||
|
|
||||||
interface Props extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
interface Props extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
||||||
children?: React.ReactNode;
|
children?: React.ReactNode;
|
||||||
dimension?: 'extra-small' | 'small' | 'large';
|
dimension?: 'extra-small' | 'small';
|
||||||
variant?: 'light' | 'link';
|
variant?: 'light' | 'link';
|
||||||
withSpinner?: boolean; // also disables href and onClick (via pointer-events in CSS)
|
withSpinner?: boolean; // also disables href and onClick (via pointer-events in CSS)
|
||||||
isDisabled?: 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