Skip to content

Commit ff45a23

Browse files
committed
.class moved to block from phtml
1 parent 82e4623 commit ff45a23

File tree

3 files changed

+10
-7
lines changed
  • app
    • code/Magento/Tax
    • design/adminhtml/Magento/backend/Magento_Tax/web/css/source

3 files changed

+10
-7
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/code/Magento/Tax/view/adminhtml/templates/rate/form.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66
?>
7-
<div class="entry-edit form-inline tax-rate-form">
7+
<div class="entry-edit form-inline">
88
<?= $block->getFormHtml() ?>
99
</div>
1010
<?= $block->getChildHtml('form_after') ?>

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@
2626
}
2727
}
2828

29-
.tax-rate-form {
30-
.admin__fieldset > .admin__field > .admin__field-control {
31-
input[type='checkbox'] {
32-
margin: 8px 0 0 0;
33-
}
29+
.admin__fieldset > .admin__field > .admin__field-control {
30+
input.zip-is-range-checkbox {
31+
margin: 8px 0 0 0;
3432
}
3533
}

0 commit comments

Comments
 (0)