Skip to content

Commit

Permalink
feat: expose link negative/positive colors (#2329)
Browse files Browse the repository at this point in the history
* feat: expose link negative/positive colors

* Create funny-toes-attack.md
  • Loading branch information
anuraghazra authored Aug 14, 2024
1 parent 40c6aa3 commit 95f19f4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/funny-toes-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@razorpay/blade": minor
---

feat: expose link negative/positive colors
10 changes: 10 additions & 0 deletions packages/blade/src/components/Link/Link/Link.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,16 @@ const LinkColorsTemplate: StoryFn<typeof LinkComponent> = ({ icon, children = ''
{children}
</LinkComponent>
</BaseBox>
<BaseBox padding="spacing.2">
<LinkComponent {...args} color="negative">
{children}
</LinkComponent>
</BaseBox>
<BaseBox padding="spacing.2">
<LinkComponent {...args} color="positive">
{children}
</LinkComponent>
</BaseBox>
</BaseBox>
);
};
Expand Down
2 changes: 1 addition & 1 deletion packages/blade/src/components/Link/Link/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import type { BladeCommonEvents } from '~components/types';
type LinkCommonProps = {
variant?: 'anchor' | 'button';
icon?: IconComponent;
color?: 'primary' | 'white' | 'neutral';
color?: 'primary' | 'white' | 'neutral' | 'negative' | 'positive';
iconPosition?: 'left' | 'right';
isDisabled?: boolean;
onClick?: (event: SyntheticEvent) => void;
Expand Down

0 comments on commit 95f19f4

Please sign in to comment.