Commit 1273f3da authored by Emma's avatar Emma 🦉

fix alignment of vote icons

parent 903a9980
Pipeline #55527891 passed with stages
in 14 minutes and 25 seconds
......@@ -21,7 +21,7 @@
{{- user_choice == downvoted ? ' vote--user-downvoted' }}"
data-ajax-action="{{ path(route, {id: entity.id, _format: 'json'}) }}"
data-score="{{ entity.netScore }}"
data-load-prototype="{{ icon('spinner', 'loading', 'icon--spin')|e }}">
data-load-prototype="{{ icon('spinner', 'loading', 'icon--spin icon--no-align')|e }}">
{# csrf_token starts a session #}
{% if is_granted('ROLE_USER') %}
......@@ -31,7 +31,7 @@
<button type="submit" name="choice" value="{{ user_choice == upvoted ? retract : upvote }}"
class="vote__button vote__up"
title="{{ (user_choice == upvoted ? 'action.retract_upvote' : 'action.upvote')|trans }}">
<span aria-hidden="true">{{ icon('up', 'up') }}</span>
<span aria-hidden="true">{{ icon('up', 'up', 'icon--no-align') }}</span>
</button>
<span class="vote__net-score">{{ entity.netScore }}</span>
......@@ -39,7 +39,7 @@
<button type="submit" name="choice" value="{{ user_choice == downvoted ? retract : downvote }}"
class="vote__button vote__down"
title="{{ (user_choice == downvoted ? 'action.retract_downvote' : 'action.downvote')|trans }}">
<span aria-hidden="true">{{ icon('down', 'down') }}</span>
<span aria-hidden="true">{{ icon('down', 'down', 'icon--no-align') }}</span>
</button>
</form>
{%- endfilter -%}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment