Skip to content

Commit 5c7f2c9

Browse files
authored
ENGCOM-3573: Forword Port : Fixed-19379-Tax Rate Checkbox alignment issue #19383 #19413
2 parents adf4e6e + 3f88a05 commit 5c7f2c9

File tree

2 files changed

+20
-0
lines changed
  • app/design/adminhtml/Magento/backend/web/css/source/forms
  • dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Section

2 files changed

+20
-0
lines changed

app/design/adminhtml/Magento/backend/web/css/source/forms/_fields.less

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@
121121

122122
> .admin__field-control {
123123
#mix-grid .column(@field-control-grid__column, @field-grid__columns);
124+
input[type="checkbox"] {
125+
margin-top: 1.2rem;
126+
}
124127
}
125128

126129
> .admin__field-label {

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Section/Options.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,4 +403,21 @@ public function getFileOptionElements()
403403
{
404404
return $this->_rootElement->getElements($this->hintMessage);
405405
}
406+
407+
/**
408+
* @inheritdoc
409+
*/
410+
protected function _fill(array $fields, SimpleElement $element = null)
411+
{
412+
$context = ($element === null) ? $this->_rootElement : $element;
413+
foreach ($fields as $name => $field) {
414+
$element = $this->getElement($context, $field);
415+
if (!$element->isDisabled()) {
416+
$element->getContext()->hover();
417+
$element->setValue($field['value']);
418+
} else {
419+
throw new \Exception("Unable to set value to field '$name' as it's disabled.");
420+
}
421+
}
422+
}
406423
}

0 commit comments

Comments
 (0)