Skip to content

Commit

Permalink
RangeControl: do not apply react props as attributes on wrapper element
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Oct 4, 2024
1 parent 8455916 commit 5457ce8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ const wrapperMargin = ( { marks, __nextHasNoMarginBottom }: WrapperProps ) => {
return '';
};

export const Wrapper = styled.div< WrapperProps >`
export const Wrapper = styled( 'div', {
shouldForwardProp: ( prop: string ) =>
! [ 'color', '__nextHasNoMarginBottom', 'marks' ].includes( prop ),
} )< WrapperProps >`
display: block;
flex: 1;
position: relative;
Expand Down

0 comments on commit 5457ce8

Please sign in to comment.