-
Notifications
You must be signed in to change notification settings - Fork 113
frontend: fix tx details behaviour #3699
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
base: master
Are you sure you want to change the base?
Conversation
01d3b70 to
33cc544
Compare
1. Focus trap to include dialog's header for tx detail dialog. This way, the note input doesn't get auto focused. Also added autofocus inside FOCUSABLE_SELECTOR (useEsc hook) 2. Changed translations: Send to Sent, and Receive to Received
33cc544 to
68846a1
Compare
thisconnect
left a comment
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 haven't tested yet, but I think the FOCUSABLE_SELECTOR should be changed before doing any testing.
| textarea:not(:disabled), | ||
| [tabindex]:not([tabindex="-1"]):not(:disabled) | ||
| [tabindex]:not([tabindex="-1"]):not(:disabled), | ||
| [autofocus]:not(: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.
This would still get the first input element and focus it. I believe we want either:
- all elements that either have autofocus or tabindex != -1 regardless of the tagname
- or explicitly
a[tabindex]:not([tabindex="-1"]), button[autofocus]:not(:disabled), input[autofocus]:not(:disabled)...
| slim | ||
| medium> | ||
| medium | ||
| > |
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.
unrelated?
| return t('generic.sent'); | ||
| case 'receive': | ||
| return t('generic.receiveWithoutCoinCode'); | ||
| return t('generic.received'); |
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.
Ideally this and the app.json change would be in a 2nd commit as it is unrelated to the focus fix.
dialog. This way, the note input doesn't get auto focused.
Also added autofocus inside FOCUSABLE_SELECTOR (useEsc hook)