mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
checkbox disabled
This commit is contained in:
@ -26,6 +26,16 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.checkbox[aria-disabled=true] {
|
||||||
|
pointer-events: none;
|
||||||
|
opacity: 0.5;
|
||||||
|
color: gray;
|
||||||
|
|
||||||
|
.media-checkbox {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.checkbox .item-media,
|
.checkbox .item-media,
|
||||||
.checkbox .item-content {
|
.checkbox .item-content {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
<div class="content" style="background: #efeff4">
|
<div class="content" style="background: #efeff4">
|
||||||
|
|
||||||
<ion-list>
|
<ion-list>
|
||||||
|
|
||||||
<ion-list-header>Some Checkboxes</ion-list-header>
|
<ion-list-header>Some Checkboxes</ion-list-header>
|
||||||
|
|
||||||
<ion-checkbox [checked]="true">
|
<ion-checkbox [checked]="true">
|
||||||
@ -16,11 +17,10 @@
|
|||||||
Bananas
|
Bananas
|
||||||
</ion-checkbox>
|
</ion-checkbox>
|
||||||
|
|
||||||
<ion-checkbox>
|
<ion-checkbox [disabled]="true">
|
||||||
Oranges
|
Oranges
|
||||||
</ion-checkbox>
|
</ion-checkbox>
|
||||||
|
|
||||||
|
|
||||||
</ion-list>
|
</ion-list>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user