Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Remove additional props being forward to the DOM (#234)
Browse files Browse the repository at this point in the history
This PR #228 removed the format prop from being forward. Somehow these props were getting through 🤔.

Co-authored-by: Kenneth Duverge <kenneth.duverge@vimeo.com>
  • Loading branch information
kenneth-duverge and kenneth-duverge authored Mar 2, 2023
1 parent be00f36 commit c722278
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/Button/Button.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@ export const ButtonChildren = styled.span<any>`
`;

export const ButtonStyled = styled.button.withConfig<any>({
shouldForwardProp: (prop: any) => !['format'].includes(prop),
shouldForwardProp: (prop: any) =>
![
'format',
'icononly',
'iconposition',
'theme',
'variant',
].includes(prop),
})`
${buttonCore};
${buttonIcon};
Expand Down

0 comments on commit c722278

Please # to comment.