diff --git a/core/api.txt b/core/api.txt index e65496c310..a168843634 100644 --- a/core/api.txt +++ b/core/api.txt @@ -235,6 +235,8 @@ ion-checkbox,css-prop,--checkmark-color ion-checkbox,css-prop,--checkmark-width ion-checkbox,css-prop,--size ion-checkbox,css-prop,--transition +ion-checkbox,part,container +ion-checkbox,part,mark ion-chip,shadow ion-chip,prop,color,string | undefined,undefined,false,false diff --git a/core/src/components/checkbox/checkbox.tsx b/core/src/components/checkbox/checkbox.tsx index ff31cbcd86..d7296424c0 100644 --- a/core/src/components/checkbox/checkbox.tsx +++ b/core/src/components/checkbox/checkbox.tsx @@ -7,6 +7,9 @@ import { createColorClasses, hostContext } from '../../utils/theme'; /** * @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use. + * + * @part container - The container for the checkbox mark. + * @part mark - The checkmark used to indicate the checked state. */ @Component({ tag: 'ion-checkbox', @@ -136,13 +139,13 @@ export class Checkbox implements ComponentInterface { renderHiddenInput(true, el, this.name, (checked ? value : ''), disabled); let path = indeterminate - ? - : ; + ? + : ; if (mode === 'md') { path = indeterminate - ? - : ; + ? + : ; } return ( @@ -162,7 +165,7 @@ export class Checkbox implements ComponentInterface { 'interactive': true }} > - + {path} @@ -81,6 +86,11 @@ + + Checkmark ::part + + + Unchecked by Default