You need to sign in to do that
Don't have an account?
Yaroslav Borisov
Change slds radiogroup text
Hello. I am looking for how to change text color and font for the lightning-radio-group standard component. The hooks work properly, but the rest of CSS doesn't work. And I haven't found hooks for text. Could you please help me?
Code that I have:
<lightning-radio-group type="radio" options={radioData} onchange={handleRadioChange} class="radio-group"></lightning-radio-group> .radio-group { --sds-c-radio-mark-color-foreground: #9300EA; --sds-c-radio-color-border-focus: #9300EA; --sds-c-radio-color-border-checked: #9300EA; color: black; font-size: 16px; } .radio-group .slds-form-element__label { color: black; font-family: sans-serif; font-size: 16px; }
Hi Yaroslav,
Kindly refer this article to change the color and font :-
https://www.lightningdesignsystem.com/components/radio-group/
Regards,
Priya Ranjan