# Setting label part of a radiogroup to readonly {disabled)

**URL:** <https://forum.servoy.com/t/setting-label-part-of-a-radiogroup-to-readonly-disabled/21254>\
**Category:** Questions\
**Created:** [July 2, 2024, 6:05am UTC](https://forum.servoy.com/t/setting-label-part-of-a-radiogroup-to-readonly-disabled/21254 "2024-07-02T06:05:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![huber](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/huber/32/5042_2.png) [@huber](https://forum.servoy.com/u/huber)\
**Post date:** [July 2, 2024, 6:05am UTC](https://forum.servoy.com/t/setting-label-part-of-a-radiogroup-to-readonly-disabled/21254/1 "2024-07-02T06:05:19Z")

</div>

Making the text (label) of a radiogroup works fine with the following selector:

```auto
.bts-radiogroup {
	color: #111;
}

```

For setting a color for a disabled (read only) radiogroup label, I can’t find a selector. Not even one that sets the radiogroup label to a readonly color, e. g. to a light grey.

Has ynyone achieved this in Developer 2024.0.3.2 and NGTi?

Thanks and best regards,

---

<div class="post-metadata">

**Author:** ![mboegem](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/mboegem/32/4399_2.png) [@mboegem](https://forum.servoy.com/u/mboegem)\
**Post date:** [July 2, 2024, 9:32am UTC](https://forum.servoy.com/t/setting-label-part-of-a-radiogroup-to-readonly-disabled/21254/2 "2024-07-02T09:32:23Z")

</div>

Hi Robert,

this should do the job (although it will be green instead of light grey ![;-)]( "Wink") )

```auto
.bts-radiogroup:has(input[type="radio"]:disabled) {
   color: green;
}

```

---

<div class="post-metadata">

**Author:** ![huber](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/huber/32/5042_2.png) [@huber](https://forum.servoy.com/u/huber)\
**Post date:** [July 2, 2024, 1:49pm UTC](https://forum.servoy.com/t/setting-label-part-of-a-radiogroup-to-readonly-disabled/21254/3 "2024-07-02T13:49:46Z")

</div>

Hi Marc

As usual, a perfect answer - thanks a lot!

In the inspector, I could not find a hint to this, but you knew the solution - great ![:-)]( "Smile")

And green is very much appreciated ![;-)]( "Wink")
