Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71071

Ion-checkbox readonly instead of disabled

$
0
0

@king-ds wrote:

Hi guys, I would like to know if there is a way to add readonly instead of disabled in ion-checkbox ? Because I’m having a problem with its design/CSS particularly with the opacity when disabled was applied.

Here is the sample output for ion-checkbox disabled:

disabled

My goal is to disable the checkbox without affecting its opacity. Anyone know how to do it? One of my propose solution is to override the CSS when ion-checkbox is disabled.

Something like this:

ion-checkbox.checkbox-disabled {
   --opacity : 1;
}

However, if you have other solutions put it in the comment side :slight_smile: Thanks.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71071


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>