mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-17 21:20:32 -04:00
Add large link, no hint variant to file-list
At present the file-list pattern assumes each item has hint text below the link and so increases the hit area to overlap the hint. This adds a variant for items without one and uses it on the page for choosing an alert sub-area.
This commit is contained in:
@@ -68,6 +68,14 @@
|
||||
margin-top: -10px;
|
||||
}
|
||||
|
||||
&-filename-large-no-hint {
|
||||
padding-bottom: 0;
|
||||
padding-top: 5px;
|
||||
margin-bottom: 0;
|
||||
margin-top: 5px;
|
||||
overflow: visible; // don't cut off thicker underline
|
||||
}
|
||||
|
||||
&-filename-unlinked {
|
||||
@include core-19;
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
{% for area in library|sort %}
|
||||
<div class="file-list-item">
|
||||
<a class="file-list-filename-large govuk-link govuk-link--no-visited-state" href="{{ url_for('.choose_broadcast_sub_area', service_id=current_service.id, broadcast_message_id=broadcast_message.id, library_slug=library.id, area_slug=area.id) }}">{{ area.name }}</a>
|
||||
<a class="file-list-filename-large file-list-filename-large-no-hint govuk-link govuk-link--no-visited-state" href="{{ url_for('.choose_broadcast_sub_area', service_id=current_service.id, broadcast_message_id=broadcast_message.id, library_slug=library.id, area_slug=area.id) }}">{{ area.name }}</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user