Merge pull request #4019 from Icinga/fix/no-keyboard-control-for-toggle-sliders-4006

Make toggle sliders accessible
This commit is contained in:
Johannes Meyer 2019-12-05 16:30:40 +01:00 committed by GitHub
commit 19dd4b93f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;