Skip to content

Commit 88857f6

Browse files
author
Robert He
committed
MAGETWO-89658: Add validation check and rule
- added validation for color inputs
1 parent 773ceac commit 88857f6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/code/Magento/Ui/view/base/web/templates/form/element/colorPicker.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
* See COPYING.txt for license details.
55
*/
66
-->
7-
<div class="admin__field"
7+
<div class="admin__field-control"
88
visible="visible"
99
css="$data.additionalClasses">
1010
<input type="hidden" class="colorpicker-spectrum" data-bind="colorPicker: colorPickerConfig, attr: { disabled: disabled }" />
11-
<input type="text" class="colorpicker-input" data-bind="
11+
<input type="text" class="admin__control-text colorpicker-input" data-bind="
1212
value: value,
1313
hasFocus: focused,
1414
attr: { id: uid, placeholder: placeholder, disabled: disabled }" />

app/design/adminhtml/Magento/backend/web/css/source/components/_color-picker.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ License: MIT
1212

1313
.colorpicker-input {
1414
vertical-align: middle;
15+
width: 50% !important;
1516
}
1617

1718
.sp-container {

0 commit comments

Comments
 (0)