Use CSS to show separators in moderation actions
This is useful for people using screen readers, since the character used as a separator won't be read aloud. Since many screen readers also read content generated via CSS pseudoelements, we aren't using `content: "|";` or similar but using elements with a very small width instead.
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
</span>
|
||||
|
||||
<% if can?(:hide, comment) || can?(:hide, comment.user) %>
|
||||
<span class="divider"> • </span>
|
||||
<% if comment.author == current_user %>
|
||||
<span class="divider"> • </span>
|
||||
<%= link_to t("comments.actions.delete"),
|
||||
hide_comment_path(comment),
|
||||
method: :put, remote: true, class: "delete-comment",
|
||||
|
||||
Reference in New Issue
Block a user