Remove fancy styling for fieldset

This commit is contained in:
zandercymatics 2024-05-20 11:56:24 -06:00
parent 9a6ccc1c44
commit c085512c70
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 15 additions and 16 deletions

View file

@ -8,10 +8,3 @@ fieldset {
fieldset:not(:first-child) {
margin-top: units(2);
}
fieldset.registrar-fieldset__contact {
// This fieldset is for SR purposes only
border: 0;
margin: 0;
padding: 0;
}

View file

@ -43,11 +43,11 @@
}
}
/*
.usa-form-readonly:first-of-type {
border-top: None;
margin-top: 0px !important;
}
}*/
.usa-form-readonly > .usa-form-group:first-of-type {
margin-top: unset;

View file

@ -67,13 +67,19 @@
{% input_with_errors form.full_name %}
{% endwith %}
<fieldset id="profile-name-fieldset" class="registrar-fieldset__contact display-none">
{% input_with_errors form.first_name %}
{% input_with_errors form.middle_name %}
{% input_with_errors form.last_name %}
</fieldset>
<div id="profile-name-fieldset" class="display-none" role="group">
{% with group_classes="usa-form-readonly padding-top-2" %}
{% input_with_errors form.first_name %}
{% endwith %}
{% with group_classes="usa-form-readonly padding-top-2" %}
{% input_with_errors form.middle_name %}
{% endwith %}
{% with group_classes="usa-form-readonly padding-top-2" %}
{% input_with_errors form.last_name %}
{% endwith %}
</div>
{# This field doesn't have the readonly button but it has common design elements from it #}
{% with show_readonly=True add_class="display-none" group_classes="usa-form-readonly padding-top-2 bold-usa-label" sublabel_text=email_sublabel_text %}