Skip to content

Commit 84d3c81

Browse files
author
Dubovyk Oleksandr
committed
MAGETWO-42365: "Export" Admin page lost its styles
1 parent 45faa88 commit 84d3c81

File tree

1 file changed

+7
-4
lines changed
  • app/code/Magento/Backend/Block/Widget/Grid/Column/Renderer

1 file changed

+7
-4
lines changed

app/code/Magento/Backend/Block/Widget/Grid/Column/Renderer/Checkbox.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,18 @@ public function render(\Magento\Framework\DataObject $row)
108108
*/
109109
protected function _getCheckboxHtml($value, $checked)
110110
{
111-
$html = '<input type="checkbox" ';
111+
$html = '<label class="data-grid-checkbox-cell-inner" ';
112+
$html .= ' for="id_' . $this->escapeHtml($value) . '">';
113+
$html .= '<input type="checkbox" ';
112114
$html .= 'name="' . $this->getColumn()->getFieldName() . '" ';
113115
$html .= 'value="' . $this->escapeHtml($value) . '" ';
116+
$html .= 'id="id_' . $this->escapeHtml($value) . '" ';
114117
$html .= 'class="' .
115118
($this->getColumn()->getInlineCss() ? $this->getColumn()->getInlineCss() : 'checkbox') .
116-
' admin__control-checkbox' .
117-
'"';
119+
' admin__control-checkbox' . '"';
118120
$html .= $checked . $this->getDisabled() . '/>';
119-
$html .= '<label></label>';
121+
$html .= '<label for="id_' . $this->escapeHtml($value) . '"></label>';
122+
$html .= '</label>';
120123
/* ToDo UI: add class="admin__field-label" after some refactoring _fields.less */
121124
return $html;
122125
}

0 commit comments

Comments
 (0)