# How can I get the text on a disabled button to not be shaded?

**URL:** <https://forums.unrealengine.com/t/how-can-i-get-the-text-on-a-disabled-button-to-not-be-shaded/558101>\
**Category:** UI\
**Tags:** unreal-engine, UE5-0, Widget, question\
**Created:** [May 16, 2022, 3:41am UTC](https://forums.unrealengine.com/t/how-can-i-get-the-text-on-a-disabled-button-to-not-be-shaded/558101 "2022-05-16T03:41:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidTveraas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidtveraas/32/1058281_2.png) [@DavidTveraas](https://forums.unrealengine.com/u/DavidTveraas)\
**Post date:** [May 16, 2022, 3:41am UTC](https://forums.unrealengine.com/t/how-can-i-get-the-text-on-a-disabled-button-to-not-be-shaded/558101/1 "2022-05-16T03:41:33Z")

</div>

![widimg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/2/c/d2c09fc72febae23251371a247ab1344c0d6cce0.png)  
I’m finding when I show a disabled button, there seems to be some override where the text on the button gets shaded no matter what color I set the colors to. Does anyone know a way I can have more control over this?

---

<div class="post-metadata">

**Author:** ![Hibiikiii](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hibiikiii/32/1085923_2.png) [@Hibiikiii](https://forums.unrealengine.com/u/Hibiikiii)\
**Post date:** [June 16, 2022, 2:51pm UTC](https://forums.unrealengine.com/t/how-can-i-get-the-text-on-a-disabled-button-to-not-be-shaded/558101/2 "2022-06-16T14:51:47Z")

</div>

There is a option to achieve this.

You would create a Overlay and add a Button to it with Horizontal & Vertical Alignment to “Fill”:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/9/a09c5eacd6aa776c295c1eabc9c79e4b813cd499.png)

After that you also add a Text to the Overlay and set its Horizontal & Vertical Alignment to “Center”, also add a padding to give the button more space to “breath” on the left & right side, as well as at the top & bottom. (These are values used as an example).  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/c/3bc33f6b52fd1ee99fbe5cf5f6b2f9e22d57288e.png)

Now your Layout for a Button should look something like this:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/3/793852b88e538a00ccf64e39e874cddf1e275068.png)

When you now disable the button:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/5/465ce0c6e59eaa9890d206c52812df44a05cb0eb.png)

The text is still in it’s original color, but the button is disabled.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/0/7/4073014d05eeb4b5e40728b5970220db57f0a249.png)

**Don’t forget to set the Visibility of the Text to “Not Hit-Testable (Self only)” or “Not Hit-Testable (Self & All Children)”. If you forget that, you will wonder why the button is not clickable.**

Hope that sums everything up & helps, if you still got a question don’t hesitate to ask!

Have a great day!

---

<div class="post-metadata">

**Author:** ![Engelard](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/engelard/32/903560_2.png) [@Engelard](https://forums.unrealengine.com/u/Engelard)\
**Post date:** [May 2, 2024, 5:53pm UTC](https://forums.unrealengine.com/t/how-can-i-get-the-text-on-a-disabled-button-to-not-be-shaded/558101/3 "2024-05-02T17:53:54Z")

</div>

It all certainly shouldn’t be like this. It is some conceptual flaw of Unreal Engine devs, i spent like an hour today, went through entire hierarchy of my widget multiple times, simply not able to find where is the source of that bloody greyish tint.

Thank you @Hibiikiii for simple(st) solution.

---

<div class="post-metadata">

**Author:** ![Hungg\_Bui](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hungg\_Bui](https://forums.unrealengine.com/u/Hungg_Bui)\
**Post date:** [September 21, 2026, 5:13pm UTC](https://forums.unrealengine.com/t/how-can-i-get-the-text-on-a-disabled-button-to-not-be-shaded/558101/4 "2026-09-21T17:13:38Z")

</div>

> [@Hibiikiii](#):
>
> After that you also add a Text to the Overlay and set its Horizontal & Vertical Alignment to “Center”, also add a padding to give the button more space to “breath” on the left & right side, as well as at the top & bottom. (These are values used as an example).

Thank u very much! Have a good day bro 🙂
