From 2c760e4fbf255b4e8a22ba9354271c80c473665c Mon Sep 17 00:00:00 2001 From: Richard McCarthy Date: Fri, 29 Nov 2024 15:29:44 +0000 Subject: [PATCH] change id and remove aria-expanded js from radios --- .../example-radios-with-other-checkboxes.njk | 16 ++++++++-------- src/components/radios/radios.dom.js | 4 ---- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/components/radios/example-radios-with-other-checkboxes.njk b/src/components/radios/example-radios-with-other-checkboxes.njk index cc91f63275..0984165258 100644 --- a/src/components/radios/example-radios-with-other-checkboxes.njk +++ b/src/components/radios/example-radios-with-other-checkboxes.njk @@ -7,21 +7,21 @@ "borderless": true, "radios": [ { - "id": "post-example-radio-with-other-checkbox-expanded", + "id": "post-example-radio-with-other-checkbox", "label": { "text": "By post" }, "value": "post" }, { - "id": "email-example-radio-with-other-checkbox-expanded", + "id": "email-example-radio-with-other-checkbox", "label": { "text": "By email" }, "value": "email" }, { - "id": "phone-example-radio-with-other-checkbox-expanded", + "id": "phone-example-radio-with-other-checkbox", "label": { "text": "By phone" }, @@ -30,34 +30,34 @@ "other": { "otherType": "checkboxes", "selectAllChildren": true, - "id": "phone-time-example-radio-with-other-checkbox-expanded", + "id": "phone-time-example-radio-with-other-checkbox", "name": "phone-time", "legend": "Select preferred times of day", "checkboxes": [ { "value": "anytime", - "id": "anytime-example-radio-with-other-checkbox-expanded", + "id": "anytime-example-radio-with-other-checkbox", "label": { "text": "Anytime of day" } }, { "value": "morning", - "id": "morning-example-radio-with-other-checkbox-expanded", + "id": "morning-example-radio-with-other-checkbox", "label": { "text": "Morning" } }, { "value": "afternoon", - "id": "afternoon-example-radio-with-other-checkbox-expanded", + "id": "afternoon-example-radio-with-other-checkbox", "label": { "text": "Afternoon" } }, { "value": "evening", - "id": "evening-example-radio-with-other-checkbox-expanded", + "id": "evening-example-radio-with-other-checkbox", "label": { "text": "Evening" } diff --git a/src/components/radios/radios.dom.js b/src/components/radios/radios.dom.js index df060adf76..b0e6743dfa 100644 --- a/src/components/radios/radios.dom.js +++ b/src/components/radios/radios.dom.js @@ -4,10 +4,6 @@ domready(async () => { const radios = [...document.querySelectorAll('.ons-js-radio')]; if (radios.length) { - const Radios = (await import('../checkboxes/checkboxes-with-reveal')).default; - - new Radios(radios); - const button = document.querySelector('.ons-js-clear-btn'); const otherInput = document.querySelector('.ons-radio__other'); if (button) {