-
Notifications
You must be signed in to change notification settings - Fork 2
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
Jon/ui4/login-request #224
Conversation
<EdgeButton | ||
label={lstrings.allow} | ||
onPress={this.handleApproveVoucher(voucher)} | ||
type="secondary" |
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.
Approving is the dangerous action, but denying is safe. I think you have the danger type backwards.
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.
We did go back and forth a lot during spec discussion on this. Ultimately we went with this, because a deny/block/delete/no type button is generally expected to be red.
"Allow" in itself is the opposite of a destructive operation, but in this context, it's dangerous.
The compromise was to add the exclamation marks to convey danger on the secondary "Allow" in the following modal.
Now that you mention this, 'danger' is probably just a bad choice of naming, just like how our legacy 'escape' was also inaccurate. I'll change it.
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.
I absolutely do not agree with this decision. Who is the "we" in this discussion? You and Madison?
Since "Deny" is the ONLY safe button to press, marking it as "danger" is exactly the opposite of what we want. This completely negates the whole reason we approved this task for the sprint, which was because customers had hit the wrong button and lost all their funds (by "we", I mean the QA / support meeting).
Valid solutions would include making both buttons equal (non-danger), or swapping the danger as I requested (vetoing Madison). I will not approve this PR with "Deny" marked as dangerous. No, your wording change is clever, but not good enough to justify this.
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.
Continuing with the design post discussion because the strongest point of evidence that this aligns with user expectations is that google/apple/etc have the same design:
Red denotes the destructive (red) "Deny/No this wasn't me" action. They go further to even make the "Allow/Yes this was me" the primary action, which we aren't doing in Edge.
282a331
to
2b980c9
Compare
* Omitting `icon` because it's unused and we don't have `FastImage` in loginui
The removal of "Ui4" was missed in the GUI refactor, but applied here.
2b980c9
to
1530b1b
Compare
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
noneDescription
none