Merge pull request #334 from mouse-reeve/comment-form

More interactive clickable elements
This commit is contained in:
Mouse Reeve 2020-11-10 12:48:45 -08:00 committed by GitHub
commit de744483ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 3 deletions

View file

@ -26,7 +26,9 @@
<input class="toggle-control" type="radio" name="more-results" id="fewer-results" checked>
<div class="toggle-content hidden">
<label class="button is-small" for="more-results">Show results from other catalogues</label>
<label class="button is-small" for="more-results">
<div role="button" tabindex="0">Show results from other catalogues</div>
</label>
</div>
</div>
{% endif %}
@ -58,7 +60,9 @@
{% endif %}
{% endfor %}
{% if local_results.results %}
<label class="button is-small" for="fewer-results">Hide results from other catalogues</label>
<label class="button is-small" for="fewer-results">
<div role="button" tabindex="0">Hide results from other catalogues</div>
</label>
{% endif %}
</div>
</div>

View file

@ -33,7 +33,11 @@
{% if request.user.is_authenticated %}
<label class="button is-small" for="show-comment-{{ status.id }}">
<span class="icon icon-comment"><span class="is-sr-only">Comment</span></span>
<div role="button" tabindex="0">
<span class="icon icon-comment">
<span class="is-sr-only">Comment</span>
</span>
</div>
</label>
{% include 'snippets/boost_button.html' with status=status %}
{% include 'snippets/fav_button.html' with status=status %}