mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +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();
|
||||
}
|
||||
|
||||
ion-checkbox[aria-disabled=true] .item-inner > * {
|
||||
pointer-events: none;
|
||||
ion-checkbox[aria-disabled=true] {
|
||||
opacity: 0.5;
|
||||
color: $subdued-text-color;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ ion-radio {
|
||||
@include user-select-none();
|
||||
}
|
||||
|
||||
ion-radio[aria-disabled=true] .item-inner > * {
|
||||
ion-radio[aria-disabled=true] {
|
||||
opacity: 0.5;
|
||||
color: $subdued-text-color;
|
||||
pointer-events: none;
|
||||
|
||||
@@ -13,8 +13,8 @@ ion-switch media-switch {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
ion-switch[aria-disabled=true] .item-inner > * {
|
||||
pointer-events: none;
|
||||
ion-switch[aria-disabled=true] {
|
||||
opacity: 0.5;
|
||||
color: $subdued-text-color;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user