agroptima-design-system 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agroptima-design-system",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "scripts": {
5
5
  "dev": "npm run storybook",
6
6
  "storybook": "storybook dev -p 6006 --ci",
@@ -21,10 +21,18 @@
21
21
  justify-content: flex-start;
22
22
  align-items: flex-start;
23
23
  gap: config.$space-2x;
24
- }
25
24
 
26
- .text {
27
- @include typography.body-regular-primary;
25
+ .text {
26
+ @include typography.body-regular-primary;
27
+
28
+ a {
29
+ color: var(--alert-link-color);
30
+
31
+ &:hover:not(:disabled) {
32
+ color: var(--alert-link-hover-color);
33
+ }
34
+ }
35
+ }
28
36
  }
29
37
 
30
38
  .icon {
@@ -1,4 +1,7 @@
1
1
  :root {
2
+ --alert-link-color: var(--strawberry-primary-color-600);
3
+ --alert-link-hover-color: var(--strawberry-primary-color-800);
4
+
2
5
  .strawberry {
3
6
  --accent-color: var(--neutral-white);
4
7
  --notification-color: var(--success-color-1000);
@@ -69,6 +69,16 @@ export const Success: Story = {
69
69
  parameters: figmaPrimaryDesign,
70
70
  }
71
71
 
72
+ export const SuccessWithLink: Story = {
73
+ render: () => (
74
+ <Alert
75
+ id="success-alert"
76
+ variant="success"
77
+ text={<a href="http://fakelink.com">Go to another castle</a>}
78
+ />
79
+ ),
80
+ } as unknown as Story
81
+
72
82
  export const SuccessWithFadeOut: Story = {
73
83
  args: {
74
84
  id: 'success-alert',
@@ -60,7 +60,7 @@ export const Option: Story = {
60
60
  render: () => (
61
61
  <CardMenuOption
62
62
  id="first-menu-option"
63
- href="http://olakas.com"
63
+ href="http://fakelink.com"
64
64
  icon="Info"
65
65
  variant="primary"
66
66
  title="It's dangerous to go alone!"
@@ -4,6 +4,10 @@ import { Meta } from "@storybook/addon-docs/blocks";
4
4
 
5
5
  # Changelog
6
6
 
7
+ ## 1.0.7
8
+
9
+ * Add link styles to Alert component
10
+
7
11
 
8
12
  ## 1.0.6
9
13