We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3d9288 commit f8b18faCopy full SHA for f8b18fa
src/scripts/Radio.tsx
@@ -37,7 +37,7 @@ export const Radio: FC<RadioProps> = ({
37
);
38
const radioClassNames = classnames(className, 'slds-radio');
39
return (
40
- <label className={radioClassNames}>
+ <span className={radioClassNames}>
41
<input
42
ref={inputRef}
43
type='radio'
@@ -46,8 +46,10 @@ export const Radio: FC<RadioProps> = ({
46
onChange={onChange}
47
{...props}
48
/>
49
- <span className='slds-radio_faux' />
50
- <span className='slds-form-element__label'>{label || children}</span>
51
- </label>
+ <label className='slds-radio__label' htmlFor={id}>
+ <span className='slds-radio_faux' />
+ <span className='slds-form-element__label'>{label || children}</span>
52
+ </label>
53
+ </span>
54
55
};
0 commit comments