mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
fix(disable): disable tap for inputs
I know this change allows the bottom line to have an opacity too, but this is the lesser of evils. Removed use of * selector, and able to disable tap inputs. Closes #610
This commit is contained in:
@ -8,8 +8,8 @@ ion-checkbox {
|
|||||||
@include user-select-none();
|
@include user-select-none();
|
||||||
}
|
}
|
||||||
|
|
||||||
ion-checkbox[aria-disabled=true] .item-inner > * {
|
ion-checkbox[aria-disabled=true] {
|
||||||
pointer-events: none;
|
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
color: $subdued-text-color;
|
color: $subdued-text-color;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ ion-radio {
|
|||||||
@include user-select-none();
|
@include user-select-none();
|
||||||
}
|
}
|
||||||
|
|
||||||
ion-radio[aria-disabled=true] .item-inner > * {
|
ion-radio[aria-disabled=true] {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
color: $subdued-text-color;
|
color: $subdued-text-color;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
@ -13,8 +13,8 @@ ion-switch media-switch {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
ion-switch[aria-disabled=true] .item-inner > * {
|
ion-switch[aria-disabled=true] {
|
||||||
pointer-events: none;
|
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
color: $subdued-text-color;
|
color: $subdued-text-color;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user