mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
iOS switch
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
|
||||
.checkbox {
|
||||
position: relative;
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
@include user-select-none();
|
||||
}
|
||||
@@ -21,6 +20,10 @@
|
||||
@include appearance(none);
|
||||
}
|
||||
|
||||
.checkbox .input-label {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.checkbox[aria-disabled=true] {
|
||||
opacity: 0.5;
|
||||
color: gray;
|
||||
|
||||
@@ -18,7 +18,7 @@ import {Icon} from '../icon/icon';
|
||||
@IonicComponent({
|
||||
selector: 'ion-checkbox',
|
||||
host: {
|
||||
'[class.item]': 'item',
|
||||
'class': 'item',
|
||||
'[attr.aria-checked]': 'input.checked'
|
||||
}
|
||||
})
|
||||
@@ -46,8 +46,6 @@ export class Checkbox extends IonInputItem {
|
||||
this.cd = cd;
|
||||
|
||||
cd.valueAccessor = this;
|
||||
|
||||
this.item = true;
|
||||
}
|
||||
|
||||
onInit() {
|
||||
|
||||
Reference in New Issue
Block a user