diff --git a/src/assets/scripts/Pinecone/NestedCheckbox/index.js b/src/assets/scripts/Pinecone/NestedCheckbox/index.js index 563faf0e..84da196e 100644 --- a/src/assets/scripts/Pinecone/NestedCheckbox/index.js +++ b/src/assets/scripts/Pinecone/NestedCheckbox/index.js @@ -51,8 +51,8 @@ class NestedCheckbox { supplementaryLabel.classList.add( 'screen-reader-text' ); supplementaryLabel.hidden = false; this.input.parentNode.insertBefore( customCheckbox, this.input ); - this.input.setAttribute( 'type', 'hidden' ); - this.input.setAttribute( 'value', status ? this.value : '' ); + this.input.classList.add( 'screen-reader-text' ); + this.input.setAttribute( 'aria-hidden', 'true' ); this.label.hidden = true; this.customCheckbox = customCheckbox; } @@ -72,7 +72,7 @@ class NestedCheckbox { toggleMixedCheckbox( ctrl ) { const state = 'true' === ctrl.getAttribute( 'aria-checked' ) || false; ctrl.setAttribute( 'aria-checked', !state ); - this.input.setAttribute( 'value', !state ? this.value : '' ); + this.input.checked = !state; Array.prototype.forEach.call( this.subInputs, checkbox => { checkbox.checked = !state; } ); diff --git a/src/components/atoms/button/button.njk b/src/components/atoms/button/button.njk index e0b163c7..89daf7cd 100644 --- a/src/components/atoms/button/button.njk +++ b/src/components/atoms/button/button.njk @@ -1,4 +1,4 @@ {% if not standAlone %}
{% endif %} -