I am using Office fabric Choice Group
for my radio buttons. I would like to change the styling of part of text to bold
, but the rest of text remains as normal font size. I am using onRenderField
method but I have not successfully implemented yet.... I really appreciate any inputs!!
Final Goal for radio button text:
On: some additional explanation here
Example Code using onRenderField
method:
options={[
{
key: 'On',
text: 'On: some additional explanation here',
onRenderField: (props, render) => {
return (
<span style={{fontWeight: 'bold'}}>
{render!(props)}
</span>
);
}
}
]}
The above code makes bold
entire text
like below:
On: some additional explanation here