Skip to content

Commit

Permalink
fix Link component asChild
Browse files Browse the repository at this point in the history
  • Loading branch information
robphoenix committed Aug 12, 2024
1 parent 7065fe6 commit 87a82d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/breezy-bears-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@utilitywarehouse/web-ui': patch
---

Fix Link component asChild
2 changes: 1 addition & 1 deletion packages/web-ui/src/Link/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const classSelectors = {
};

const StyledElement = styled('a', {
shouldForwardProp: prop => prop !== 'textTransform',
shouldForwardProp: prop => prop !== 'as' && prop !== 'textTransform',
})<LinkProps>(({ textTransform }) => {
const sizeStyles = {
large: {
Expand Down

0 comments on commit 87a82d5

Please sign in to comment.