IcingaCheckbox: Don't `display:none` the checkbox but add `.sr-only` to it
This commit is contained in:
parent
d2596025ea
commit
4157821c89
|
@ -11,6 +11,7 @@ class IcingaCheckbox extends \Zend_View_Helper_FormCheckbox
|
||||||
$attribs['id'] = $this->view->protectId('icingaCheckbox_' . $name);
|
$attribs['id'] = $this->view->protectId('icingaCheckbox_' . $name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$attribs['class'] = (isset($attribs['class']) ? $attribs['class'] . ' ' : '') . 'sr-only';
|
||||||
$html = parent::formCheckbox($name, $value, $attribs, $checkedOptions);
|
$html = parent::formCheckbox($name, $value, $attribs, $checkedOptions);
|
||||||
|
|
||||||
$class = 'toggle-switch';
|
$class = 'toggle-switch';
|
||||||
|
|
|
@ -299,11 +299,6 @@ form.icinga-form .form-controls {
|
||||||
width: 2.625em;
|
width: 2.625em;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hide default checkbox
|
|
||||||
.icinga-controls input[type="checkbox"] {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icinga-controls .toggle-switch .toggle-slider {
|
.icinga-controls .toggle-switch .toggle-slider {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|
Loading…
Reference in New Issue