Skip to content
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

Auto focus the delete confirm button #5813

Open
1 task
golok727 opened this issue Feb 8, 2024 · 4 comments · May be fixed by #6284
Open
1 task

Auto focus the delete confirm button #5813

golok727 opened this issue Feb 8, 2024 · 4 comments · May be fixed by #6284
Labels
good first issue Good for newcomers story Features perceivable by end-users

Comments

@golok727
Copy link
Contributor

golok727 commented Feb 8, 2024

Description

It would be better if the delete button in the confirmation modal is autoFocussed so that I can use the enter key instead of clicking the button to delete

Use case

No response

Anything else?

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@golok727 golok727 added the story Features perceivable by end-users label Feb 8, 2024
@dev19Aman
Copy link

in which file is the confirm button located?

@golok727
Copy link
Contributor Author

golok727 commented Mar 13, 2024

in which file is the confirm button located?

After taking a look at the code, it seems that the dialog from radix ui uses the enter key to close the modal instead of confirming it.

https://www.radix-ui.com/primitives/docs/components/dialog#keyboard-interactions

@pengx17 pengx17 added the good first issue Good for newcomers label Mar 19, 2024
@pengx17
Copy link
Collaborator

pengx17 commented Mar 19, 2024

Not sure about this UX. What do you think @hwangdev97 ?

@hwangdev97
Copy link
Member

lgtm 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers story Features perceivable by end-users
Projects
Status: 💡 Open
Development

Successfully merging a pull request may close this issue.

4 participants