|
<OptionItem |
|
key={_optionId} |
|
optionsAmount={options.length} |
|
className={`${CLASS_NAMES_PREFIX}-option`} |
|
optionBorderRadius={optionBorderRadius} |
|
> |
|
<OptionItemLabel |
|
className={`${CLASS_NAMES_PREFIX}-option-label`} |
|
selected={selectedIndex === index} |
|
isRawText={isRawText} |
|
disabled={disabled} |
|
aria-disabled={disabled} |
|
{...(isRawText ? labelRawTextProps : {})} |
|
> |
|
<OptionInput |
|
type="radio" |
|
id={_optionId} |
|
onChange={(): void => handleOnClick(index)} |
|
checked={selectedIndex === index} |
|
/> |
|
{option.label} |
|
</OptionItemLabel> |
When a custom component is passed as a label, instead of rawText, the fontColor property is not passed as a property. Changing this would make making custom components that reuse the existing logic easier.
react-switch-selector/src/SwitchSelector.tsx
Lines 64 to 85 in 207f88d
When a custom component is passed as a label, instead of rawText, the
fontColorproperty is not passed as a property. Changing this would make making custom components that reuse the existing logic easier.