# Ionic 4: change opacity in disabled ion-checkbox

**URL:** <https://forum.ionicframework.com/t/ionic-4-change-opacity-in-disabled-ion-checkbox/153388>\
**Category:** Ionic Framework\
**Created:** [January 17, 2019, 8:17am UTC](https://forum.ionicframework.com/t/ionic-4-change-opacity-in-disabled-ion-checkbox/153388 "2019-01-17T08:17:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrFloppy](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@MrFloppy](https://forum.ionicframework.com/u/MrFloppy)\
**Post date:** [January 17, 2019, 8:17am UTC](https://forum.ionicframework.com/t/ionic-4-change-opacity-in-disabled-ion-checkbox/153388/1 "2019-01-17T08:17:42Z")

</div>

Hey guys,

I tried to change to opacity of an ion-checkbox (including the label) but it just didn’t work. i tried to set

```auto
--checkbox-ios-disabled-opacity: 1 !important;
--checkbox-md-disabled-opacity: 1 !important;

```

But nothing happened. It get’s overwritten by .3 from “.item-interactive-disabled”. Any chance I can change this somehow within the shadow dom?

---

<div class="post-metadata">

**Author:** ![MrFloppy](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@MrFloppy](https://forum.ionicframework.com/u/MrFloppy)\
**Post date:** [January 19, 2019, 1:58pm UTC](https://forum.ionicframework.com/t/ionic-4-change-opacity-in-disabled-ion-checkbox/153388/2 "2019-01-19T13:58:03Z")

</div>

Anyone an any idea how to solve this?  
Should I open an issue on github?

---

<div class="post-metadata">

**Author:** ![fathanyr](https://avatars.discourse-cdn.com/v4/letter/f/45deac/32.png) [@fathanyr](https://forum.ionicframework.com/u/fathanyr)\
**Post date:** [June 15, 2021, 7:54am UTC](https://forum.ionicframework.com/t/ionic-4-change-opacity-in-disabled-ion-checkbox/153388/3 "2021-06-15T07:54:04Z")

</div>

did you have the answer?

---

<div class="post-metadata">

**Author:** ![antonsadovskiy](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@antonsadovskiy](https://forum.ionicframework.com/u/antonsadovskiy)\
**Post date:** [March 11, 2024, 11:09am UTC](https://forum.ionicframework.com/t/ionic-4-change-opacity-in-disabled-ion-checkbox/153388/4 "2024-03-11T11:09:56Z")

</div>

you need to add inline css style to your IonCheckbox, like this:

```auto
<IonCheckbox style={{opacity: "1"}}></IonCheckbox>

```
