mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Make clickable areas bigger on tables with links
Generally, bigger click areas are better[1], as long as they don’t cause ambiguity or accidental clicks. This commit expands the clickable area of tables where the left-hand column is a link to include the meta information under the link. We can’t make the whole row clickable, because sometimes we have links in the right hand column which go to a different place This commit also removes the CSS for `.spark-bar-label`, because these elements are visually identical to `file-list`s now. 1. https://en.wikipedia.org/wiki/Fitts%27s_law
This commit is contained in:
@@ -41,11 +41,9 @@
|
||||
field_headings_visible=False
|
||||
) %}
|
||||
{% call row_heading() %}
|
||||
<span class="spark-bar-label">
|
||||
<a href="{{ url_for('.view_template', service_id=current_service.id, template_id=item.id) }}">{{ item.name }}</a>
|
||||
<span class="file-list-hint">
|
||||
{{ message_count_label(1, item.type, suffix='template')|capitalize }}
|
||||
</span>
|
||||
<a class="file-list-filename" href="{{ url_for('.view_template', service_id=current_service.id, template_id=item.id) }}">{{ item.name }}</a>
|
||||
<span class="file-list-hint">
|
||||
{{ message_count_label(1, item.type, suffix='template')|capitalize }}
|
||||
</span>
|
||||
{% endcall %}
|
||||
{{ spark_bar_field(item.requested_count, most_used_template_count) }}
|
||||
|
||||
Reference in New Issue
Block a user