mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Merge pull request #4019 from Icinga/fix/no-keyboard-control-for-toggle-sliders-4006
Make toggle sliders accessible
This commit is contained in:
commit
19dd4b93f1
@ -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';
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user