Skip to content

Commit 7546bbc

Browse files
ENGCOM-6967: Fix #26917 Tax rate zip/post range check box alignment issue #26932
- Merge Pull Request #26932 from srsathish92/magento2:bug/26917-tax-checkbox-alignment - Merged commits: 1. 08219e8 2. 82e4623 3. ff45a23
2 parents 555a134 + ff45a23 commit 7546bbc

File tree

2 files changed

+13
-2
lines changed
  • app
    • code/Magento/Tax/Block/Adminhtml/Rate
    • design/adminhtml/Magento/backend/Magento_Tax/web/css/source

2 files changed

+13
-2
lines changed

app/code/Magento/Tax/Block/Adminhtml/Rate/Form.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,12 @@ protected function _prepareForm()
211211
$fieldset->addField(
212212
'zip_is_range',
213213
'checkbox',
214-
['name' => 'zip_is_range', 'label' => __('Zip/Post is Range'), 'value' => '1']
214+
[
215+
'name' => 'zip_is_range',
216+
'label' => __('Zip/Post is Range'),
217+
'value' => '1',
218+
'class' => 'zip-is-range-checkbox'
219+
]
215220
);
216221

217222
if (!isset($formData['tax_postcode'])) {

app/design/adminhtml/Magento/backend/Magento_Tax/web/css/source/_module.less

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
.block.mselect-list.paginated {
1616
.admin__action-multiselect-search-wrap {
17-
border:1px solid @color-gray80;
17+
border: 1px solid @color-gray80;
1818
border-bottom: none;
1919
border-radius: 3px;
2020
margin: 0;
@@ -25,3 +25,9 @@
2525
font-size: 1.3rem;
2626
}
2727
}
28+
29+
.admin__fieldset > .admin__field > .admin__field-control {
30+
input.zip-is-range-checkbox {
31+
margin: 8px 0 0 0;
32+
}
33+
}

0 commit comments

Comments
 (0)