Search code examples
antd

How can I change the text color of an Ant Design Radio component when it is disabled


I want to change the text color when an Ant Design Radio button is disabled. I have been trying things like this...

.ant-radio[disabled]:active {
    color: $g06;
}

Which haven't worked.


Solution

  • Add the folowing css.

    .ant-radio-disabled + span {
        color: #ea6262;
    }
    

    Screenshot

    Screenshot