You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(input-otp): convert to a form associated shadow component #30785 (#30884)
Issue number: internal
---------
## What is the current behavior?
Input Otp uses `scoped` encapsulation. This causes issues with CSP compatibility and is inconsistent with our goal of having all components use Shadow DOM.
## What is the new behavior?
- Converts `ion-input-otp` to `shadow` with `formAssociated: true`
- Adds shadow parts for inner elements
## Does this introduce a breaking change?
- [x] Yes
- [ ] No
BREAKING CHANGE:
Input Otp has been converted to use [Shadow DOM](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM).
If you were targeting the internals of `ion-input-otp` in your CSS, you will need to target the `group`, `container`, `native`, `separator` or `description` [Shadow Parts](https://ionicframework.com/docs/theming/css-shadow-parts) instead, or use the provided CSS Variables.
---------
Co-authored-by: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>
Copy file name to clipboardExpand all lines: BREAKING.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ This is a comprehensive list of the breaking changes introduced in the major ver
20
20
-[Chip](#version-9x-chip)
21
21
-[Datetime](#version-9x-datetime)
22
22
-[Grid](#version-9x-grid)
23
+
-[Input Otp](#version-9x-input-otp)
23
24
-[Radio Group](#version-9x-radio-group)
24
25
-[Textarea](#version-9x-textarea)
25
26
@@ -185,6 +186,12 @@ To reorder two columns where column 1 has `size="9" push="3"` and column 2 has `
185
186
</ion-grid>
186
187
```
187
188
189
+
<h4id="version-9x-input-otp">Input Otp</h4>
190
+
191
+
Converted `ion-input-otp` to use [Shadow DOM](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM).
192
+
193
+
If you were targeting the internals of `ion-input-otp` in your CSS, you will need to target the `group`, `container`, `native`, `separator` or `description`[Shadow Parts](https://ionicframework.com/docs/theming/css-shadow-parts) instead, or use the provided CSS Variables.
194
+
188
195
<h4id="version-9x-radio-group">Radio Group</h4>
189
196
190
197
Converted `ion-radio-group` to use [Shadow DOM](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM).
* The mode determines the platform behaviors of the component.
1784
+
*/
1785
+
"mode"?: "ios" | "md";
1782
1786
/**
1783
1787
* A regex pattern string for allowed characters. Defaults based on type. For numbers (`type="number"`): `"[\p{N}]"` For text (`type="text"`): `"[\p{L}\p{N}]"`
0 commit comments