mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(checkbox): align vertically (#16331)
This commit is contained in:
@ -14,7 +14,7 @@ $checkbox-ios-background-color-on: ion-color(primary, base) !default;
|
|||||||
$checkbox-ios-background-color-focused: ion-color(primary, tint) !default;
|
$checkbox-ios-background-color-focused: ion-color(primary, tint) !default;
|
||||||
|
|
||||||
/// @prop - Size of the checkbox icon
|
/// @prop - Size of the checkbox icon
|
||||||
$checkbox-ios-icon-size: 24px !default;
|
$checkbox-ios-icon-size: 26px !default;
|
||||||
|
|
||||||
/// @prop - Border color of the checkbox icon when off
|
/// @prop - Border color of the checkbox icon when off
|
||||||
$checkbox-ios-icon-border-color-off: $item-ios-border-color !default;
|
$checkbox-ios-icon-border-color-off: $item-ios-border-color !default;
|
||||||
|
@ -17,7 +17,7 @@ $checkbox-md-background-color-focused: ion-color(primary, tint) !default;
|
|||||||
$checkbox-md-icon-background-color-on: ion-color(primary, base) !default;
|
$checkbox-md-icon-background-color-on: ion-color(primary, base) !default;
|
||||||
|
|
||||||
/// @prop - Size of the checkbox icon
|
/// @prop - Size of the checkbox icon
|
||||||
$checkbox-md-icon-size: 14px !default;
|
$checkbox-md-icon-size: 18px !default;
|
||||||
|
|
||||||
/// @prop - Width of the checkbox icon checkmark
|
/// @prop - Width of the checkbox icon checkmark
|
||||||
$checkbox-md-icon-checkmark-width: 2px !default;
|
$checkbox-md-icon-checkmark-width: 2px !default;
|
||||||
|
@ -42,6 +42,7 @@ input {
|
|||||||
.checkbox-icon {
|
.checkbox-icon {
|
||||||
@include border-radius(var(--border-radius));
|
@include border-radius(var(--border-radius));
|
||||||
|
|
||||||
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
width: var(--width);
|
width: var(--width);
|
||||||
@ -56,6 +57,7 @@ input {
|
|||||||
background: var(--background);
|
background: var(--background);
|
||||||
|
|
||||||
contain: strict;
|
contain: strict;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.checkbox-icon path {
|
.checkbox-icon path {
|
||||||
|
Reference in New Issue
Block a user