TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Cancel as a Link or a Button? (UX)

2 点作者 karimmaassen大约 3 年前

2 条评论

efortis大约 3 年前
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 未加载
karimmaassen大约 3 年前
Which one is UX best practice and why? A small exploration as to why one is preferred over the other.