Skip to content

Commit

Permalink
fix: Radio remove spreading of all duplicate props on Styled Radio
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel.carrera committed May 16, 2024
1 parent a24167f commit 799f558
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions modules/preview-react/radio/lib/StyledRadioButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,9 @@ export interface StyledRadioButtonProps extends ExtractProps<typeof Box, 'input'
*/
export const StyledRadioButton = createComponent('input')({
displayName: 'Radio',
Component: ({...elemProps}: StyledRadioButtonProps, ref, Element) => {
Component: ({className, ...elemProps}: StyledRadioButtonProps, ref, Element) => {
return (
<RadioInputWrapper
height="18px"
width="18px"
flex="0 0 auto"
{...elemProps} // This ensures our visual testing stories work properly
>
<RadioInputWrapper height="18px" width="18px" flex="0 0 auto" className={className}>
<StyledRadioInput
borderRadius="circle"
position="absolute"
Expand Down

0 comments on commit 799f558

Please sign in to comment.