feat: Add non-color indicator to vote button state #168
@@ -3,7 +3,7 @@
|
|||||||
<div class="comment-votes" role="group" aria-label="Comment votes">
|
<div class="comment-votes" role="group" aria-label="Comment votes">
|
||||||
<form method="POST" action="/votes/comment/{{ item.comment['uid'] }}">
|
<form method="POST" action="/votes/comment/{{ item.comment['uid'] }}">
|
||||||
<input type="hidden" name="value" value="1">
|
<input type="hidden" name="value" value="1">
|
||||||
<button type="submit" class="comment-vote-btn vote-up{% if item.my_vote == 1 %} voted{% endif %}" aria-label="Upvote" title="Upvote" aria-pressed="{% if item.my_vote == 1 %}true{% else %}false{% endif %}"{{ guest_disabled(user) }}>+</button>
|
<button type="submit" class="comment-vote-btn vote-up{% if item.my_vote == 1 %} voted{% endif %}" aria-label="Upvote" title="Upvote" aria-pressed="{% if item.my_vote == 1 %}true{% else %}false{% endif %}"{{ guest_disabled(user) }}></button>
|
||||||
</form>
|
</form>
|
||||||
<span class="comment-vote-count" data-vote-count="{{ item.comment['uid'] }}">{{ item.votes.up - item.votes.down }}</span>
|
<span class="comment-vote-count" data-vote-count="{{ item.comment['uid'] }}">{{ item.votes.up - item.votes.down }}</span>
|
||||||
<form method="POST" action="/votes/comment/{{ item.comment['uid'] }}">
|
<form method="POST" action="/votes/comment/{{ item.comment['uid'] }}">
|
||||||
@@ -70,3 +70,4 @@
|
|||||||
{{ render_comment_flat(child, depth, item.author) }}
|
{{ render_comment_flat(child, depth, item.author) }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div class="post-votes" role="group" aria-label="Post votes">
|
<div class="post-votes" role="group" aria-label="Post votes">
|
||||||
<form method="POST" action="/votes/post/{{ _uid }}" class="inline-form">
|
<form method="POST" action="/votes/post/{{ _uid }}" class="inline-form">
|
||||||
<input type="hidden" name="value" value="-1">
|
<input type="hidden" name="value" value="-1">
|
||||||
<button type="submit" class="post-action-btn vote-down{% if _my_vote == -1 %} voted{% endif %}" aria-label="Downvote" title="Downvote" aria-pressed="{% if _my_vote == -1 %}true{% else %}false{% endif %}"{{ guest_disabled(user) }}>−</button>
|
<button type="submit" class="post-action-btn vote-down{% if _my_vote == -1 %} voted{% endif %}" aria-label="Downvote" title="Downvote" aria-pressed="{% if _my_vote == -1 %}true{% else %}false{% endif %}"{{ guest_disabled(user) }}></button>
|
||||||
</form>
|
</form>
|
||||||
<span class="post-vote-count" data-vote-count="{{ _uid }}">{{ _count }}</span>
|
<span class="post-vote-count" data-vote-count="{{ _uid }}">{{ _count }}</span>
|
||||||
<form method="POST" action="/votes/post/{{ _uid }}" class="inline-form">
|
<form method="POST" action="/votes/post/{{ _uid }}" class="inline-form">
|
||||||
@@ -9,3 +9,4 @@
|
|||||||
<button type="submit" class="post-action-btn vote-up{% if _my_vote == 1 %} voted{% endif %}" aria-label="Upvote" title="Upvote" aria-pressed="{% if _my_vote == 1 %}true{% else %}false{% endif %}"{{ guest_disabled(user) }}>+</button>
|
<button type="submit" class="post-action-btn vote-up{% if _my_vote == 1 %} voted{% endif %}" aria-label="Upvote" title="Upvote" aria-pressed="{% if _my_vote == 1 %}true{% else %}false{% endif %}"{{ guest_disabled(user) }}>+</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user