IcingaCheckbox: Don't `display:none` the checkbox but add `.sr-only` to it

This commit is contained in:
Johannes Meyer 2019-12-05 16:12:41 +01:00
parent d2596025ea
commit 4157821c89
2 changed files with 1 additions and 5 deletions

View File

@ -11,6 +11,7 @@ class IcingaCheckbox extends \Zend_View_Helper_FormCheckbox
$attribs['id'] = $this->view->protectId('icingaCheckbox_' . $name);
}
$attribs['class'] = (isset($attribs['class']) ? $attribs['class'] . ' ' : '') . 'sr-only';
$html = parent::formCheckbox($name, $value, $attribs, $checkedOptions);
$class = 'toggle-switch';

View File

@ -299,11 +299,6 @@ form.icinga-form .form-controls {
width: 2.625em;
}
// Hide default checkbox
.icinga-controls input[type="checkbox"] {
display: none;
}
.icinga-controls .toggle-switch .toggle-slider {
position: absolute;
left: 0;