iOS switch

This commit is contained in:
Adam Bradley
2015-07-28 14:16:45 -05:00
parent b24a98731f
commit 51516b8b64
16 changed files with 259 additions and 159 deletions

View File

@ -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;

View File

@ -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() {