-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix: handle disabled button styles #1061
Conversation
709e226
to
c8e8301
Compare
src/app/view/Secure/SetPinView.tsx
Outdated
disabled={secondInput.length !== 4} | ||
> | ||
<Typography | ||
color={secondInput.length !== 4 ? 'disabled' : 'primary'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: const isPasswordComplete = (password) => password.length === 4
to factorize and make it very clear
src/ui/Button/index.tsx
Outdated
@@ -18,7 +18,7 @@ export const Button = ({ | |||
style={[ | |||
styles.button, | |||
styles[variant], | |||
disabled ? styles.disabled : {}, | |||
disabled && styles[`${variant}Disabled`], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bit hard to update, @Ldoppea I think the best way to handle that is you just overwrite my styles during conflict. I update to follow same naming convention in styles though
They weren't well adjusted. We have to rationalize quickly these themes issues. This commit is more a quick fix. Some buttons in the app don't use the disabled style some do. Also we need 1 disabled style per variant per theme (that we use in the app though).
c8e8301
to
129984d
Compare
They weren't well adjusted. We have to rationalize quickly
these themes issues.
This commit is more a quick fix.
Some buttons in the app don't use the disabled style some do.
Also we need 1 disabled style per variant per theme (that we use in the
app though).