Skip to content

Commit

Permalink
replace chevron icon with thumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
goapunk committed Jan 6, 2025
1 parent e75a81a commit 3bbf42e
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
{% spaceless %}
<span class="rating">
<span class="rating-button rating-up is-read-only" title="{% translate 'Positive Ratings' %}">
<i class="fa fa-chevron-up" aria-label="{% translate 'Positive Ratings' %}"></i>
<i class="fa fa-thumbs-up" aria-label="{% translate 'Positive Ratings' %}"></i>
{{ object.positive_rating_count }}
</span>
<span class="rating-button rating-down is-read-only" title="{% translate 'Negative Ratings' %}">
<i class="fa fa-chevron-down" aria-label="{% translate 'Negative Ratings' %}"></i>
<i class="fa fa-thumbs-down" aria-label="{% translate 'Negative Ratings' %}"></i>
{{ object.negative_rating_count }}
</span>
</span>
Expand All @@ -35,7 +35,7 @@ <h3 class="u-first-heading">
<span class="badge badge--big">{{ object.budget|intcomma }}€</span>
{% endif %}
{% if object.moderator_status %}
<span class="badge badge--big badge--{{object.moderator_status|classify }} list-item__badge--moderator-feedback">
<span class="badge badge--big badge--{{ object.moderator_status|classify }} list-item__badge--moderator-feedback">
{{ object.get_moderator_status_display }}
</span>
{% endif %}
Expand Down
26 changes: 13 additions & 13 deletions apps/contrib/templates/a4_candy_contrib/component_library.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends 'base.html' %}

{% block title %}Component Library &mdash; {{ block.super }}{% endblock %}
{% block title %}Component Library {{ block.super }}{% endblock %}

{% block content %}
<div class="container">
Expand Down Expand Up @@ -823,7 +823,7 @@ <h2 id="cl-comments">Comments</h2>
</div>
<div class="row">
<div class="col-12 a4-comments__action-bar-container">
<div class="rating"><button class="rating-button rating-up"><i class="fa fa-chevron-up" aria-hidden="true"></i>0</button><button class="rating-button rating-down"><i class="fa fa-chevron-down"
<div class="rating"><button class="rating-button rating-up"><i class="fa fa-thumbs-up" aria-hidden="true"></i>0</button><button class="rating-button rating-down"><i class="fa fa-thumbs-down"
aria-hidden="true"></i>0</button></div>
<div class="a4-comments__action-bar"><button class="btn btn--no-border a4-comments__action-bar__btn" type="button"><a href="#child-comment-form"><i class="far fa-comment" aria-hidden="true"></i> Reply</a></button><a
class="btn btn--no-border a4-comments__action-bar__btn" href="?comment_25" data-bs-toggle="modal" data-bs-target="#url_modal"><i class="fas fa-share"></i> Share</a></div>
Expand Down Expand Up @@ -1547,10 +1547,10 @@ <h1 class="item-detail__title">Item Detail Title</h1>
<div class="item-detail__actions lr-bar">
<div class="lr-bar__left">
<button class="rating-button rating-up">
<i class="fa fa-chevron-up" aria-hidden="true"></i>
<i class="fa fa-thumbs-up" aria-hidden="true"></i>
12
</button>
<button class="rating-button rating-down"><i class="fa fa-chevron-down" aria-hidden="true"></i>
<button class="rating-button rating-down"><i class="fa fa-thumbs-down" aria-hidden="true"></i>
0
</button>
</div>
Expand Down Expand Up @@ -1641,10 +1641,10 @@ <h2 id="cl-list_item">List Item</h2>
<div class="list-item__stats">
<span class="rating">
<span class="rating-button rating-up is-read-only" title="Positive Ratings">0
<i class="fa fa-chevron-up" aria-label="Positive Ratings"></i>
<i class="fa fa-thumbs-up" aria-label="Positive Ratings"></i>
</span>
<span class="rating-button rating-down is-read-only" title="Negative Ratings">0
<i class="fa fa-chevron-down" aria-label="Negative Ratings"></i>
<i class="fa fa-thumbs-down" aria-label="Negative Ratings"></i>
</span>
</span>
<span title="Comments">0
Expand All @@ -1665,9 +1665,9 @@ <h3 class="u-first-heading">
<div class="list-item__stats">
<span class="rating">
<span class="rating-button rating-up is-read-only" title="Positive Ratings">0
<i class="fa fa-chevron-up" aria-label="Positive Ratings"></i></span>
<i class="fa fa-thumbs-up" aria-label="Positive Ratings"></i></span>
<span class="rating-button rating-down is-read-only" title="Negative Ratings">0
<i class="fa fa-chevron-down" aria-label="Negative Ratings"></i>
<i class="fa fa-thumbs-down" aria-label="Negative Ratings"></i>
</span>
</span>
<span title="Comments">0
Expand All @@ -1689,9 +1689,9 @@ <h3 class="u-first-heading"><a href="#cl-list_item">My Idea list item squashed</
<div class="list-item__stats">
<span class="rating">
<span class="rating-button rating-up is-read-only" title="Positive Ratings">0
<i class="fa fa-chevron-up" aria-label="Positive Ratings"></i></span>
<i class="fa fa-thumbs-up" aria-label="Positive Ratings"></i></span>
<span class="rating-button rating-down is-read-only" title="Negative Ratings">0
<i class="fa fa-chevron-down" aria-label="Negative Ratings"></i>
<i class="fa fa-thumbs-down" aria-label="Negative Ratings"></i>
</span>
</span>
<span title="Comments">0
Expand Down Expand Up @@ -1989,11 +1989,11 @@ <h2 id="cl-rating">Rating</h2>
<span class="rating">
<span class="rating-button rating-up is-read-only" title="Positive Ratings">
0
<i class="fa fa-chevron-up" aria-label="Positive Ratings"></i>
<i class="fa fa-thumbs-up" aria-label="Positive Ratings"></i>
</span>
<span class="rating-button rating-down is-read-only" title="Negative Ratings">
0
<i class="fa fa-chevron-down" aria-label="Negative Ratings"></i>
<i class="fa fa-thumbs-down" aria-label="Negative Ratings"></i>
</span>
</span>
<span title="Comments">
Expand Down Expand Up @@ -2425,4 +2425,4 @@ <h2 id="cl-upload">Upload</h2>
</div>
</div>
</div>
{% endblock %}
{% endblock content %}
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
{% if object|has_feature:"rate" %}
<span class="rating">
<span class="rating-button rating-up is-read-only" title="{% translate 'Positive Ratings' %}">
<i class="fa fa-chevron-up" aria-label="{% translate 'Positive Ratings' %}"></i>
<i class="fa fa-thumbs-up" aria-label="{% translate 'Positive Ratings' %}"></i>
{{ object.positive_rating_count }}
</span>
<span class="rating-button rating-down is-read-only" title="{% translate 'Negative Ratings' %}">
<i class="fa fa-chevron-down" aria-label="{% translate 'Negative Ratings' %}"></i>
<i class="fa fa-thumbs-down" aria-label="{% translate 'Negative Ratings' %}"></i>
{{ object.negative_rating_count }}
</span>
</span>
Expand Down
2 changes: 1 addition & 1 deletion apps/interactiveevents/assets/Filters.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default class Filter extends React.Component {
onChange={this.props.toggleOrdering} // eslint-disable-line react/jsx-handler-names
/>
<span className="checkbox-btn__text--colour">
<i className="fa fa-chevron-up" aria-hidden="true" /> likes
<i className="fa fa-thumbs-up" aria-hidden="true" /> likes
</span>
</label>
</div>
Expand Down
2 changes: 1 addition & 1 deletion apps/interactiveevents/assets/QuestionModerator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default class QuestionModerator extends React.Component {
</div>
<div className="row justify-content-between">
<div className="col-12 col-md-4 col-sm-5 mb-3 mb-sm-0">
<div className="mt-2 text-primary">{this.state.likes}<i className="fa fa-chevron-up ms-2" /></div>
<div className="mt-2 text-primary">{this.state.likes}<i className="fa fa-thumbs-up ms-2" /></div>
</div>
<div className="col-12 col-md-8 col-sm-7">
{this.props.displayIsHidden &&
Expand Down
4 changes: 2 additions & 2 deletions apps/interactiveevents/assets/QuestionUser.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ export default class QuestionUser extends React.Component {
>
<span>{this.state.likes} </span>
<span className="visually-hidden">{likesText}</span>
<i className="fa fa-chevron-up" aria-hidden="true" />
<i className="fa fa-thumbs-up" aria-hidden="true" />
</button>
)
: (
<div className="float-right">
<span className="text-muted">{this.state.likes}</span>
<span className="visually-hidden">{likesText}</span>
<i className="fa fa-chevron-up text-muted ms-1" aria-hidden="true" />
<i className="fa fa-thumbs-up text-muted ms-1" aria-hidden="true" />
</div>
)}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<span class="rating">
<span class="rating-button rating-up is-read-only" title="{% translate 'Positive Ratings' %}">
{{ object.positive_rating_count }}
<i class="fa fa-chevron-up" aria-label="{% translate 'Positive Ratings' %}"></i>
<i class="fa fa-thumbs-up" aria-label="{% translate 'Positive Ratings' %}"></i>
</span>
<span class="rating-button rating-down is-read-only" title="{% translate 'Negative Ratings' %}">
{{ object.negative_rating_count }}
<i class="fa fa-chevron-down" aria-label="{% translate 'Negative Ratings' %}"></i>
<i class="fa fa-thumbs-down" aria-label="{% translate 'Negative Ratings' %}"></i>
</span>
</span>
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<span class="rating">
<span class="rating-button rating-up is-read-only" title="{% translate 'Positive Ratings' %}">
{{ object.positive_rating_count }}
<i class="fa fa-chevron-up" aria-label="{% translate 'Positive Ratings' %}"></i>
<i class="fa fa-thumbs-up" aria-label="{% translate 'Positive Ratings' %}"></i>
</span>
<span class="rating-button rating-down is-read-only" title="{% translate 'Negative Ratings' %}">
{{ object.negative_rating_count }}
<i class="fa fa-chevron-down" aria-label="{% translate 'Negative Ratings' %}"></i>
<i class="fa fa-thumbs-down" aria-label="{% translate 'Negative Ratings' %}"></i>
</span>
</span>
{% endif %}
Expand Down

0 comments on commit 3bbf42e

Please sign in to comment.