mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +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-content {
|
||||
pointer-events: none;
|
||||
|
@ -6,6 +6,7 @@
|
||||
<div class="content" style="background: #efeff4">
|
||||
|
||||
<ion-list>
|
||||
|
||||
<ion-list-header>Some Checkboxes</ion-list-header>
|
||||
|
||||
<ion-checkbox [checked]="true">
|
||||
@ -16,11 +17,10 @@
|
||||
Bananas
|
||||
</ion-checkbox>
|
||||
|
||||
<ion-checkbox>
|
||||
<ion-checkbox [disabled]="true">
|
||||
Oranges
|
||||
</ion-checkbox>
|
||||
|
||||
|
||||
</ion-list>
|
||||
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user