mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 18:17:31 +08:00
fix(checkbox): match MD spec (#16186)
* fix(checkbox): prevent transition inheritance * fix(checkbox): use SVG for checkbox icon * fix(checkbox): match MD spec size * refactor(checkbox): use height/width custom props over size * fix(checkbox): match MD spec off state border color * feat(checkbox): animate check path for MD
This commit is contained in:
@ -5,7 +5,8 @@
|
||||
// --------------------------------------------------
|
||||
|
||||
:host {
|
||||
--size: #{$checkbox-ios-icon-size};
|
||||
--height: #{$checkbox-ios-icon-size};
|
||||
--width: #{$checkbox-ios-icon-size};
|
||||
|
||||
// Border
|
||||
--border-radius: #{$checkbox-ios-icon-border-radius};
|
||||
@ -17,25 +18,6 @@
|
||||
--background: #{$checkbox-ios-background-color-off};
|
||||
}
|
||||
|
||||
// iOS Checkbox Inner Checkmark: Checked
|
||||
// -----------------------------------------
|
||||
|
||||
.checkbox-inner {
|
||||
@include position(calc(var(--size) / 6), null, null, calc(var(--size) / 2.5 - 1px));
|
||||
|
||||
position: absolute;
|
||||
|
||||
width: calc(var(--size) / 6 + 1px);
|
||||
height: calc(var(--size) / 2);
|
||||
|
||||
transform: rotate(45deg);
|
||||
|
||||
border-width: $checkbox-ios-checkmark-border-width;
|
||||
border-top-width: 0;
|
||||
border-left-width: 0;
|
||||
border-style: $checkbox-ios-checkmark-border-style;
|
||||
}
|
||||
|
||||
|
||||
// iOS Checkbox: Disabled
|
||||
// -----------------------------------------
|
||||
|
Reference in New Issue
Block a user