# 对于无法取消标记正确答案的用户，应隐藏带对勾的按钮

**URL:** <https://meta.discourse.org/t/button-with-checkmark-should-be-hidden-to-users-who-cant-unmark-correct-answers/79216>\
**Category:** UX\
**Tags:** solved\
**Created:** [2018年一月28日 18:22 UTC](https://meta.discourse.org/t/button-with-checkmark-should-be-hidden-to-users-who-cant-unmark-correct-answers/79216 "2018-01-28T18:22:54Z")\
**Posts on this page:** 1\
**Showing post:** 37

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [2019年七月23日 15:29 UTC](https://meta.discourse.org/t/button-with-checkmark-should-be-hidden-to-users-who-cant-unmark-correct-answers/79216/37 "2019-07-23T15:29:08Z")

</div>

好的，以下是我们要开始的一些小改动：

- 如果我可以接受/取消接受，那就使用我们现在的同一个按钮（我只是把文字移到了按钮内部）……

 ![07%20AM](https://global.discourse-cdn.com/meta/original/3X/9/6/9689e7bfc208a7543d19bad3570fa636b6509dc6.png)

- 如果无法接受/取消接受，就不再显示按钮，而是直接显示带有对勾的“已解决”文字。这样看起来就不那么像按钮了，这也正是原始请求（OP）所希望的。

我还为这段文字添加了一个 title 属性，内容为“这是该主题的已接受解决方案”。目前我们使用一个没有任何功能的按钮，对于使用屏幕阅读器的用户来说可能会非常困惑。这样做可以大大改善这一问题。

 ![38%20AM](https://global.discourse-cdn.com/meta/original/3X/b/4/b4e99f62f0cf3784da850bf5cb9d994e636cace0.png)

以下是这些改动的 PR 链接：

> <https://github.com/discourse/discourse-solved/pull/80>

* * *

在上述改动中，我还没有针对移动端做任何额外的更新……在展开所有控件时，那里的布局往往会有些问题，因为空间不足以容纳所有内容（例如对于管理员用户而言）。

下一步，我想在帖子控件展开或折叠时添加一个类，以便我们可以显示或隐藏“已解决”文字。这样在大多数情况下，所有内容都能像下面这样正常显示：

 ![08%20AM](https://global.discourse-cdn.com/meta/original/3X/3/d/3d1cdb2cb27d47761414b55d4b6854791e56283d.png)

 ![32%20AM](https://global.discourse-cdn.com/meta/original/3X/e/a/ea82e303a72739d885fb51ef4d74ab9dec08bfe7.png)

---

_[View the full topic](https://meta.discourse.org/t/button-with-checkmark-should-be-hidden-to-users-who-cant-unmark-correct-answers/79216)._
