Skip to content

Commit af8cc0f

Browse files
authored
ENGCOM-3506: Reducing space when there is no message on the page #19295
2 parents 3275ce7 + 26d1c55 commit af8cc0f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

app/code/Magento/Customer/view/frontend/templates/address/edit.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
<div class="control">
105105
<select id="region_id" name="region_id"
106106
title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('region') ?>"
107-
class="validate-select" <?= /* @noEscape */ !$block->getConfig('general/region/display_all') ? ' disabled="disabled"' : '' ?>>
107+
class="validate-select region_id" <?= /* @noEscape */ !$block->getConfig('general/region/display_all') ? ' disabled="disabled"' : '' ?>>
108108
<option value=""><?= $block->escapeHtml(__('Please select a region, state or province.')) ?></option>
109109
</select>
110110
<input type="text"

app/code/Magento/Customer/view/frontend/templates/form/register.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
<div class="field region required">
9595
<label for="region_id" class="label"><span><?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('region') ?></span></label>
9696
<div class="control">
97-
<select id="region_id" name="region_id" title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('region') ?>" class="validate-select" style="display:none;">
97+
<select id="region_id" name="region_id" title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('region') ?>" class="validate-select region_id" style="display:none;">
9898
<option value=""><?= $block->escapeHtml(__('Please select a region, state or province.')) ?></option>
9999
</select>
100100
<input type="text" id="region" name="region" value="<?= $block->escapeHtml($block->getRegion()) ?>" title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('region') ?>" class="input-text <?= $block->escapeHtmlAttr($this->helper('Magento\Customer\Helper\Address')->getAttributeValidationClass('region')) ?>" style="display:none;">

app/design/frontend/Magento/blank/Magento_Customer/web/css/source/_module.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
}
6666

6767
.form-address-edit {
68-
#region_id {
68+
.region_id {
6969
display: none;
7070
}
7171

@@ -368,7 +368,7 @@
368368

369369
.account {
370370
.page.messages {
371-
margin-bottom: @indent__xl;
371+
margin-bottom: @indent__base;
372372
}
373373

374374
.toolbar {

app/design/frontend/Magento/luma/Magento_Customer/web/css/source/_module.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
}
7171

7272
.form-address-edit {
73-
#region_id {
73+
.region_id {
7474
display: none;
7575
}
7676

@@ -551,7 +551,7 @@
551551

552552
.account {
553553
.page.messages {
554-
margin-bottom: @indent__xl;
554+
margin-bottom: @indent__base;
555555
}
556556

557557
.column.main {

0 commit comments

Comments
 (0)