moved domain name into separate span

This commit is contained in:
asaki222 2024-10-07 19:15:59 -04:00
parent aa5690e894
commit 1aaefde0c4
No known key found for this signature in database
GPG key ID: 2C4F802060E06EA4
4 changed files with 12 additions and 12 deletions

View file

@ -917,20 +917,15 @@ ul.add-list-reset {
font-size: 14px; font-size: 14px;
} }
.domain-name-wrap, .domain-name-wrap {
.domain-name-wrap-modal {
white-space: normal; white-space: normal;
word-wrap: break-word; word-wrap: break-word;
overflow: visible; overflow: visible;
word-break: break-all;
max-width: 100%; max-width: 100%;
} }
.domain-name-wrap {
word-break: break-all;
}
.organization-admin-label { .organization-admin-label {
font-weight: 600; font-weight: 600;
font-size: .8125rem; font-size: .8125rem;
} }

View file

@ -5,7 +5,7 @@
{% block domain_content %} {% block domain_content %}
{{ block.super }} {{ block.super }}
<div class="margin-top-4 tablet:grid-col-10"> <div class="margin-top-4 tablet:grid-col-10">
<h2 class="text-bold text-primary-dark domain-name-wrap">{{ domain.name }}</h2> <h2 class="text-bold text-primary-dark">{{ domain.name }}</h2>
<div <div
class="usa-summary-box dotgov-status-box padding-bottom-0 margin-top-3 padding-left-2{% if not domain.is_expired %}{% if domain.state == domain.State.UNKNOWN or domain.state == domain.State.DNS_NEEDED %} dotgov-status-box--action-need{% endif %}{% endif %}" class="usa-summary-box dotgov-status-box padding-bottom-0 margin-top-3 padding-left-2{% if not domain.is_expired %}{% if domain.state == domain.State.UNKNOWN or domain.state == domain.State.DNS_NEEDED %} dotgov-status-box--action-need{% endif %}{% endif %}"
role="region" role="region"

View file

@ -2,8 +2,13 @@
<div class="usa-modal__content"> <div class="usa-modal__content">
<div class="usa-modal__main"> <div class="usa-modal__main">
<h2 class="usa-modal__heading domain-name-wrap-modal" id="modal-1-heading"> <h2 class="usa-modal__heading" id="modal-1-heading">
{{ modal_heading }} {{ modal_heading }}
{%if domain_name_modal is not None %}
<span class="domain-name-wrap">
{{ domain_name_modal }}
</span>
{%endif%}
{% if heading_value is not None %} {% if heading_value is not None %}
{# Add a breakpoint #} {# Add a breakpoint #}
<div aria-hidden="true"></div> <div aria-hidden="true"></div>

View file

@ -389,8 +389,8 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView):
"visited": self.storage.get("step_history", []), "visited": self.storage.get("step_history", []),
"is_federal": self.domain_request.is_federal(), "is_federal": self.domain_request.is_federal(),
"modal_button": modal_button, "modal_button": modal_button,
"modal_heading": "You are about to submit a domain request for " "modal_heading": "You are about to submit a domain request for ",
+ str(self.domain_request.requested_domain), "domain_name_modal": str(self.domain_request.requested_domain),
"modal_description": "Once you submit this request, you wont be able to edit it until we review it.\ "modal_description": "Once you submit this request, you wont be able to edit it until we review it.\
Youll only be able to withdraw your request.", Youll only be able to withdraw your request.",
"review_form_is_complete": True, "review_form_is_complete": True,