TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Cancel as a Link or a Button? (UX)

2 pointsby karimmaassenabout 3 years ago

2 comments

efortisabout 3 years ago
It&#x27;s a destroy modal action, so it&#x27;s a button. In other words, you are still at the same place.<p>Changing the subject, the underlying problem is abusing modals. One for &quot;Your session is about to expire&quot; that&#x27;s OK, but for &quot;Add Fruit&quot; you can create an editable new fruit row and allow undoing the action(s).<p>BTW, in my app, I only use &quot;Cancel&quot; for having an element to focus on when there&#x27;s a destructive action. Other than that, the user can click outside the dialog. Which I mention to ask you: do make the click area outside the dialog a link as well?
评论 #30755669 未加载
karimmaassenabout 3 years ago
Which one is UX best practice and why? A small exploration as to why one is preferred over the other.