mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-25 00:33:58 -04:00
Fix spacing between button and selected areas
Adding left margin to the button meant that when it wrapped onto a new line it didn’t align flush with the left edge of its containing column. Instead we can: - move the link outside the list (which is better semantically anyway) - then add the margin to the last item of the list (which is now the last selected area, not the link)
This commit is contained in:
@@ -55,6 +55,10 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
margin-right: govuk-spacing(1) * 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
&--unremoveable {
|
&--unremoveable {
|
||||||
padding-right: govuk-spacing(2);
|
padding-right: govuk-spacing(2);
|
||||||
background: $light-blue-25;
|
background: $light-blue-25;
|
||||||
|
|||||||
@@ -82,13 +82,13 @@
|
|||||||
{{ area.name }} <a class="area-list-item-remove" href="{{ url_for('.remove_broadcast_area', service_id=current_service.id, broadcast_message_id=broadcast_message.id, area_slug=area.id) }}">remove</a>
|
{{ area.name }} <a class="area-list-item-remove" href="{{ url_for('.remove_broadcast_area', service_id=current_service.id, broadcast_message_id=broadcast_message.id, area_slug=area.id) }}">remove</a>
|
||||||
</li>
|
</li>
|
||||||
{% if loop.last %}
|
{% if loop.last %}
|
||||||
|
</ul>
|
||||||
{{ govukButton({
|
{{ govukButton({
|
||||||
"element": "a",
|
"element": "a",
|
||||||
"text": "Add another area",
|
"text": "Add another area",
|
||||||
"href": url_for('.choose_broadcast_library', service_id=current_service.id, broadcast_message_id=broadcast_message.id),
|
"href": url_for('.choose_broadcast_library', service_id=current_service.id, broadcast_message_id=broadcast_message.id),
|
||||||
"classes": "govuk-button--secondary govuk-!-margin-bottom-5"
|
"classes": "govuk-button--secondary govuk-!-margin-bottom-5"
|
||||||
}) }}
|
}) }}
|
||||||
</ul>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<p class="govuk-body">
|
<p class="govuk-body">
|
||||||
|
|||||||
Reference in New Issue
Block a user