Skip to content

unify warning and error and add capslock warning #545

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

Merged
merged 7 commits into from
Nov 25, 2020

Conversation

Tbaut
Copy link
Contributor

@Tbaut Tbaut commented Nov 24, 2020

This is how a warning + error looks like on signing
warning

And here on the derivation flow
warning-3

border-radius: ${theme.borderRadius};
border: 1px solid ${theme.inputBorderColor};
border-color: ${withError ? theme.errorBorderColor : theme.inputBorderColor};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the bug fix. The boder-color was overwritten by the more down the line "border".

@@ -64,10 +64,7 @@ function Export ({ className, match: { params: { address } } }: Props): React.Re
/>
<div className={className}>
<Address address={address}>
<Warning
className='movedWarning'
isDanger
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a warning, not an error, removing the isDanger. The Button is still red.

@@ -40,10 +40,7 @@ function Forget ({ className, match: { params: { address } } }: Props): React.Re
/>
<div className={className}>
<Address address={address}>
<Warning
className='movedWarning'
isDanger
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same here, this is a warning, not an error, removing the isDanger. The Button is still red.

Copy link
Member

@jacogr jacogr left a comment

Choose a reason for hiding this comment

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

Some small comments.

@Tbaut Tbaut merged commit 1cb36bb into master Nov 25, 2020
@Tbaut Tbaut deleted the tbaut-warning-capslock branch November 25, 2020 12:20
@polkadot-js-bot
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators May 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warn when typing passwords with caps lock on
4 participants