Skip to content

Commit

Permalink
feat(button): changed size L (72 → 64), added size XL (72)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: size L changed to size XL
  • Loading branch information
SiebenSieben committed Mar 2, 2021
1 parent 1a0a229 commit 051d964
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/button/src/Component.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Button } from './Component';
import { name, version } from '../package.json';

export const VIEWS = ['primary', 'secondary', 'outlined', 'filled', 'transparent', 'link', 'ghost'];
export const SIZES = ['xs', 's', 'm', 'l'];
export const SIZES = ['xs', 's', 'm', 'l', 'xl'];


<Meta
Expand Down
2 changes: 1 addition & 1 deletion packages/button/src/Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export type ComponentProps = {
/**
* Размер компонента
*/
size?: 'xs' | 's' | 'm' | 'l';
size?: 'xs' | 's' | 'm' | 'l' | 'xl';

/**
* Растягивает компонент на ширину контейнера
Expand Down
12 changes: 12 additions & 0 deletions packages/button/src/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,18 @@ a.loading {
}

.l {
min-width: 160px;
min-height: 64px;
padding: 0 var(--gap-2xl);
font-size: 18px;
line-height: 24px;

&.iconOnly {
min-width: 64px;
}
}

.xl {
min-width: 160px;
min-height: 72px;
padding: 0 var(--gap-2xl);
Expand Down

0 comments on commit 051d964

Please sign in to comment.