From b757970d23e87c59aa883ecb1bfa9b66bcae8de2 Mon Sep 17 00:00:00 2001 From: Shawn Taylor Date: Fri, 1 Dec 2023 11:38:29 -0500 Subject: [PATCH] feat(radio): add shadow part for label (#28607) Issue number: Part of #28300 --------- ## What is the current behavior? Developers are unable to adjust margin, width, etc. of the radio label ## What is the new behavior? - Radio label has a shadow part. ## Does this introduce a breaking change? - [ ] Yes - [x] No ## Other information As part of this work, I investigated moving `pointer-events: none` up the DOM tree so developers wouldn't be able to override it with the shadow part. In my testing, I was unable to see any difference in behavior with vs without `pointer-events: none`. Therefore, I removed it entirely. --- core/api.txt | 1 + core/src/components/radio/radio.scss | 7 ------- core/src/components/radio/radio.tsx | 2 ++ core/src/components/radio/test/radio.spec.ts | 17 +++++++++++++++++ 4 files changed, 20 insertions(+), 7 deletions(-) diff --git a/core/api.txt b/core/api.txt index 9f30c35c09..320c0fc187 100644 --- a/core/api.txt +++ b/core/api.txt @@ -1030,6 +1030,7 @@ ion-radio,css-prop,--color ion-radio,css-prop,--color-checked ion-radio,css-prop,--inner-border-radius ion-radio,part,container +ion-radio,part,label ion-radio,part,mark ion-radio-group,none diff --git a/core/src/components/radio/radio.scss b/core/src/components/radio/radio.scss index 4272607949..5a231acad9 100644 --- a/core/src/components/radio/radio.scss +++ b/core/src/components/radio/radio.scss @@ -109,13 +109,6 @@ input { // ---------------------------------------------------------------- .label-text-wrapper { - /** - * This ensures that double tapping this text - * clicks the