Skip to content

Commit

Permalink
fix: filter list checkbox properly hidden and has proper IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
jhung committed Apr 22, 2020
1 parent b6d8308 commit e8b97c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/assets/styles/components/_input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ input[type="checkbox"],
}
}

[role="checkbox"] + input[type="checkbox"] {
display: none;
}

input[type="radio"] + label,
input[type="checkbox"] + label {
font-weight: $font-weight-normal;
Expand Down
2 changes: 1 addition & 1 deletion src/components/molecules/filter-list/filter-list.njk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<li>
{% if term.children %}
{% set count = term.children.length %}
{% render '@checkbox', {label: term.label, value: term.label | slugify, name: label | slugify, standAlone: false, inverse: true}, true %}
{% render '@checkbox', {label: term.label, value: term.label | slugify, name: term.label | slugify, standAlone: false, inverse: true}, true %}
<span class="filter-disclosure-label" hidden>show {{ count }} subtopics for "{{ term.label }}"</span>
<span class="supplementary-label" hidden> (and {{ count }} subtopics)</span>
<ul class="input-group input-group__descendant">
Expand Down

0 comments on commit e8b97c8

Please sign in to comment.