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

Mahdi.aryayi / Fix design bugs #447

Merged
merged 6 commits into from
Oct 14, 2019
Merged

Conversation

mahdiaryayi-fs
Copy link
Contributor

Fix design bugs

@mahdiaryayi-fs mahdiaryayi-fs requested a review from a team October 9, 2019 11:50
@negarn
Copy link
Contributor

negarn commented Oct 11, 2019

@mahdiaryayi-fs travis failing

className='account-form__footer-btn btn--primary--default'
className={classNames('account-form__footer-btn', {
'btn--primary--default': !is_submit_success,
'btn--primary--green' : is_submit_success,

Choose a reason for hiding this comment

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

@mahdiaryayi-fs ahh just one more suggestion: could you make this changes in the <Button /> component itself? this should be applied to all usages of Button, not only on this page 😄

Copy link
Contributor Author

@mahdiaryayi-fs mahdiaryayi-fs Oct 13, 2019

Choose a reason for hiding this comment

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

@kelly-binary I checked <Button /> use cases in deriv trader. The component is style agnostic. We are passing different classNames in different cases. If I add this logic by adding btn--primary--default and btn--primary--green inside <Button />, it doesn't work in other places that we are not using primary button classes and it may cause styling conflict.

@aaimio aaimio added the Trader label Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants