diff --git a/core/api.txt b/core/api.txt index 748dcd8263..45a9452312 100644 --- a/core/api.txt +++ b/core/api.txt @@ -1262,6 +1262,8 @@ ion-toggle,css-prop,--border-radius ion-toggle,css-prop,--handle-background ion-toggle,css-prop,--handle-background-checked ion-toggle,css-prop,--handle-border-radius +ion-toggle,part,handle +ion-toggle,part,track ion-toolbar,shadow ion-toolbar,prop,color,string | undefined,undefined,false,false diff --git a/core/src/components/toggle/readme.md b/core/src/components/toggle/readme.md index 2319ad6578..cfcbdf42dc 100644 --- a/core/src/components/toggle/readme.md +++ b/core/src/components/toggle/readme.md @@ -223,6 +223,14 @@ export const ToggleExamples: React.FC = () => { | `ionFocus` | Emitted when the toggle has focus. | `CustomEvent` | +## Shadow Parts + +| Part | Description | +| ---------- | ------------------------------------------------------------- | +| `"handle"` | The toggle handle, or knob, used to change the checked state. | +| `"track"` | The background track of the toggle. | + + ## CSS Custom Properties | Name | Description | diff --git a/core/src/components/toggle/test/basic/index.html b/core/src/components/toggle/test/basic/index.html index d7ebb98562..59980bc156 100644 --- a/core/src/components/toggle/test/basic/index.html +++ b/core/src/components/toggle/test/basic/index.html @@ -33,7 +33,7 @@ Banana - + @@ -70,7 +70,7 @@ Button w/ right side default icon, really long text that should ellipsis - + Custom @@ -92,6 +92,24 @@

+ +