Skip to content
Snippets Groups Projects
Commit 4089c89f authored by Aspectis's avatar Aspectis Committed by Dorian Merz
Browse files

refs #18784 [fid_bbi] fix keep-filters input

parent f462b777
No related merge requests found
...@@ -85,13 +85,10 @@ ...@@ -85,13 +85,10 @@
cursor: pointer; cursor: pointer;
} }
.icon {
height: g(1.5);
width: g(1.5);
padding: g(.25);
}
input { input {
opacity: 0;
position: absolute;
@include hover { @include hover {
~ .icon { ~ .icon {
background: $shade; background: $shade;
...@@ -104,6 +101,12 @@ ...@@ -104,6 +101,12 @@
} }
} }
.icon {
height: g(1.5);
width: g(1.5);
padding: g(.25);
}
:checked ~ .icon path { :checked ~ .icon path {
fill: currentColor; fill: currentColor;
} }
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
<script> <script>
// For styling checkbox and radio inputs, the label must be appended to the // For styling checkbox and radio inputs, the label must be appended to the
// input, but Zend only generates inputs within labels. // input, but Zend only generates inputs within labels.
const checkboxRadioInputs = document.querySelectorAll('[type=checkbox], [type=radio]') const checkboxRadioInputs = document.querySelectorAll('main [type=checkbox], main [type=radio]')
for (let i = 0; i < checkboxRadioInputs.length; i++) { for (let i = 0; i < checkboxRadioInputs.length; i++) {
const input = checkboxRadioInputs[i] const input = checkboxRadioInputs[i]
const parent = input.parentNode const parent = input.parentNode
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment