mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 10:41:13 +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:
@ -134,9 +134,12 @@ export class Checkbox implements ComponentInterface {
|
||||
renderHiddenInput(this.el, this.name, this.value, this.disabled);
|
||||
|
||||
return [
|
||||
<div class="checkbox-icon">
|
||||
<div class="checkbox-inner"></div>
|
||||
</div>,
|
||||
<svg class="checkbox-icon" viewBox="0 0 24 24">
|
||||
{ this.mode === 'md'
|
||||
? <path d="M1.73,12.91 8.1,19.28 22.79,4.59"></path>
|
||||
: <path d="M5.9,12.5l3.8,3.8l8.8-8.8"/>
|
||||
}
|
||||
</svg>,
|
||||
<input
|
||||
type="checkbox"
|
||||
id={this.inputId}
|
||||
|
Reference in New Issue
Block a user