@import "../../themes/ionic.globals"; // Checkbox // -------------------------------------------------- :host { /** * @prop --size: Size of the checkbox icon * * @prop --checkbox-background: Background of the checkbox icon * @prop --checkbox-background-checked: Background of the checkbox icon when checked * * @prop --border-color: Border color of the checkbox icon * @prop --border-radius: Border radius of the checkbox icon * @prop --border-width: Border width of the checkbox icon * @prop --border-style: Border style of the checkbox icon * @prop --border-color-checked: Border color of the checkbox icon when checked * * @prop --transition: Transition of the checkbox icon * * @prop --checkmark-color: Color of the checkbox checkmark when checked * @prop --checkmark-width: Stroke width of the checkbox checkmark */ --checkbox-background-checked: #{ion-color(primary, base)}; --border-color-checked: #{ion-color(primary, base)}; --checkmark-color: #{ion-color(primary, contrast)}; --checkmark-width: 1; --transition: none; display: inline-block; position: relative; cursor: pointer; user-select: none; z-index: $z-index-item-input; } :host(.in-item) { width: 100%; height: 100%; } // TODO(FW-3100): remove this :host(.legacy-checkbox) { width: var(--size); height: var(--size); } :host(.ion-color) { --checkbox-background-checked: #{current-color(base)}; --border-color-checked: #{current-color(base)}; --checkmark-color: #{current-color(contrast)}; } // TODO(FW-3100): remove this :host(.legacy-checkbox) label { @include input-cover(); display: flex; align-items: center; opacity: 0; } .checkbox-wrapper { display: flex; flex-grow: 1; align-items: center; height: inherit; cursor: inherit; } .label-text-wrapper { /** * This ensures that double tapping this text * clicks the