Skip to content

Conversation

@shonsirsha
Copy link
Collaborator

@shonsirsha shonsirsha commented Dec 1, 2025

  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)

  1. Changed translations: "Send" to "Sent", and "Receive" to "Received"

@shonsirsha shonsirsha force-pushed the frontend-fix-tx-details branch 2 times, most recently from 01d3b70 to 33cc544 Compare December 1, 2025 07:18
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
@shonsirsha shonsirsha force-pushed the frontend-fix-tx-details branch from 33cc544 to 68846a1 Compare December 1, 2025 13:52
Copy link
Collaborator

@thisconnect thisconnect left a 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)
Copy link
Collaborator

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
>
Copy link
Collaborator

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');
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants