Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FRNT- 456] Implement radio button #103

Merged
merged 3 commits into from
May 7, 2021

Conversation

Irinaristova
Copy link
Contributor

No description provided.

@Irinaristova Irinaristova changed the title [FRNT- 456] implement radio button [FRNT- 456] Implement radio button Apr 28, 2021

export const InputPassword = styled(InputPasswordBase)`
export const InputPassword = (styled(InputPasswordBase)`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

зачем обертка?

@@ -16,7 +16,7 @@ export const Global = styled.div`

/* should be rewritten to formulas */
--woly-line-height: 24px;
--woly-border-width: 1.5px;
--woly-border-width: 2px;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я правильно понимаю, что ты меняешь тут значение для radio button?

У primary не прописана ширина бордера и этот вариант берет ширину отсюда. надо бы прокинуть для primary ширину бордера.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А зачем менять ширину бордеров отдельно для primary?

Ширина бордеров должна быть везде одинакова, поэтому она не в variants

)}
</State>
</Playground>
### Kinds
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Добавить пробел сверху, чтоб не слипалось)

<State initial="no" change={(i) => !i}>
{(value, change) => (
<>
<RadioButton
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не работает смена установка в состояние checked с клавиатуры на первое нажатие enter

checked: boolean;
onChange: React.EventHandler<React.SyntheticEvent>;
text?: string;
name: string;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

отсортируй плз

border-radius: var(--local-border-rounding);
border: var(--woly-border-width) solid var(--local-border-color);

margin-right: var(--local-gap);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

погляди в макетах, у тебя расстояние между радиобаттоном и текстом меняется в зависимости от размера контейнера, а у тебя --local-gap констанста

@@ -16,7 +16,7 @@ export const Global = styled.div`

/* should be rewritten to formulas */
--woly-line-height: 24px;
--woly-border-width: 1.5px;
--woly-border-width: 2px;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А зачем менять ширину бордеров отдельно для primary?

Ширина бордеров должна быть везде одинакова, поэтому она не в variants

Comment on lines +40 to +43
keyboardEventHandle({
event,
keyHandler,
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А тут есть отписка от keyboard event?

@sergeysova sergeysova merged commit 27b735a into master May 7, 2021
@sergeysova sergeysova deleted the feat/FRNT-456-implement-radio-button branch May 7, 2021 12:23
@sergeysova sergeysova added the @atoms Changes inside atoms label May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@atoms Changes inside atoms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants