Skip to content

Commit

Permalink
feat(intl-phone-input): 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 79699e3 commit 9077b7f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/intl-phone-input/src/component.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import { IntlPhoneInput } from '@alfalab/core-components-intl-phone-input';
const handleChange = React.useCallback((newValue) => {
setValue(newValue);
}, [setValue]);
const size = select('size', ['s', 'm', 'l'], 'm');
const size = select('size', ['s', 'm', 'l', 'xl'], 'm');
const block = boolean('block', false);
const disabled = boolean('disabled', false);
const label = text('label', 'Номер телефона');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type FlagIconProps = {
/**
* Размер компонента
*/
size?: 's' | 'm' | 'l';
size?: 's' | 'm' | 'l' | 'xl';

/**
* Дополнительный класс
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
}
}

.l {
.l,
.xl {
background-image: url('./images/sprites/flag-icon_size_l@1x.png');
background-size: 300px 275px;

Expand Down Expand Up @@ -3140,8 +3141,9 @@
}
}

/* sprite size l */
.l {
/* sprite size l/xl */
.l,
.xl {
&.ac {
width: 22px;
height: 11px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
outline: none;
}

.l .inner {
.l .inner,
.xl .inner {
padding-left: var(--gap-m);
}

Expand Down
3 changes: 2 additions & 1 deletion packages/intl-phone-input/src/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
padding-left: 0;
}

.l {
.l,
.xl {
& .addons {
padding-left: 0;
}
Expand Down

0 comments on commit 9077b7f

Please sign in to comment.