Styling updates

This commit is contained in:
CocoByte 2024-07-31 10:31:07 -06:00
parent f7caee0d11
commit d3b88ccb2b
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F
5 changed files with 11 additions and 4 deletions

View file

@ -646,7 +646,7 @@ function initializeWidgetOnList(list, parentId) {
const bulletList = document.createElement('ul'); const bulletList = document.createElement('ul');
// CASE 1 - Contacts are not in a table (this happens if there is only one or two other contacts) // CASE 1 - Contacts are not in a table (this happens if there is only one or two other contacts)
const contacts = document.querySelectorAll('.field-other_contacts .dja-detail-list dl'); const contacts = document.querySelectorAll('.field-other_contacts .dja-detail-list dt');
if (contacts) { if (contacts) {
contacts.forEach(contact => { contacts.forEach(contact => {
// Check if the <dl> element is not empty // Check if the <dl> element is not empty

View file

@ -377,6 +377,11 @@ input.admin-confirm-button {
} }
} }
.usa-icon {
// align icon with x height
vertical-align: middle;
}
.module--custom { .module--custom {
a { a {
font-size: 13px; font-size: 13px;

View file

@ -11,6 +11,8 @@
} }
.usa-icon { .usa-icon {
// align icon with x height // align icon with x height
vertical-align: middle; margin-top: units(0.5);
margin-right: units(0.5);
} }
} }

View file

@ -21,7 +21,7 @@
{% if opts.model_name == 'domainrequest' %} {% if opts.model_name == 'domainrequest' %}
<li> <li>
<a id="copy-summary-btn" class="usa-button__clipboard" type="button" href="#"> <a id="copy-summary-btn" class="usa-button__clipboard" type="button" href="#">
<svg class="usa-icon modelLink-icon" > <svg class="usa-icon" >
<use xlink:href="{%static 'img/sprite.svg'%}#content_copy"></use> <use xlink:href="{%static 'img/sprite.svg'%}#content_copy"></use>
</svg> </svg>
<span>{% translate "Copy request summary" %}</span> <span>{% translate "Copy request summary" %}</span>