# Ion-checkbox readonly instead of disabled

**URL:** <https://forum.ionicframework.com/t/ion-checkbox-readonly-instead-of-disabled/179379>\
**Category:** Ionic Framework\
**Created:** [December 10, 2019, 7:40am UTC](https://forum.ionicframework.com/t/ion-checkbox-readonly-instead-of-disabled/179379 "2019-12-10T07:40:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![king-ds](https://avatars.discourse-cdn.com/v4/letter/k/b782af/32.png) [@king-ds](https://forum.ionicframework.com/u/king-ds)\
**Post date:** [December 10, 2019, 7:40am UTC](https://forum.ionicframework.com/t/ion-checkbox-readonly-instead-of-disabled/179379/1 "2019-12-10T07:40:46Z")

</div>

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](https://global.discourse-cdn.com/ionicframework/original/3X/8/b/8bd059b5de0d173d9820d0a03fae187315a0d301.png)

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:

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

```

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