Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Radio remove spreading of all duplicate props on Styled Radio #2745

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading