Skip to content

Commit

Permalink
fix(intl-phone-input): design fixes (#1030)
Browse files Browse the repository at this point in the history
  • Loading branch information
reme3d2y authored Mar 18, 2022
1 parent 292b76c commit 27cfb9b
Show file tree
Hide file tree
Showing 7 changed files with 1,300 additions and 4,437 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ exports[`IntlPhoneInput should match snapshot 1`] = `
class="flagIconContainer"
>
<span
class="flagIcon m ru"
class="flagIcon ru"
/>
</span>
<svg
Expand Down
1 change: 1 addition & 0 deletions packages/intl-phone-input/src/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ export const IntlPhoneInput = forwardRef<HTMLInputElement, IntlPhoneInputProps>(
/>
),
}}
optionsListWidth="field"
closeOnSelect={true}
onInput={handleInputChange}
onChange={handleChange}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ export type FlagIconProps = {
*/
country?: string;

/**
* Размер компонента
*/
size?: 's' | 'm' | 'l' | 'xl';

/**
* Дополнительный класс
*/
Expand All @@ -23,6 +18,6 @@ export type FlagIconProps = {
/**
* Компонент флага в виде иконки.
*/
export const FlagIcon: FC<FlagIconProps> = ({ size = 'm', country = '', className }) => {
return <span className={cn(styles.flagIcon, styles[size], styles[country], className)} />;
export const FlagIcon: FC<FlagIconProps> = ({ country = '', className }) => {
return <span className={cn(styles.flagIcon, styles[country], className)} />;
};
Loading

0 comments on commit 27cfb9b

Please sign in to comment.