Skip to content

Commit 233f98d

Browse files
Merge pull request #14 from input-output-hk/feat-add-warning-text-variation
feat: add warning text variation
2 parents d36569a + 1951c92 commit 233f98d

File tree

5 files changed

+28
-0
lines changed

5 files changed

+28
-0
lines changed

src/design-system/text/text.css.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export const typography = recipe({
4444
highlight: sx({ color: '$data_blue' }),
4545
success: sx({ color: '$data_green' }),
4646
error: sx({ color: '$data_pink' }),
47+
warning: sx({ color: '$data_orange' }),
4748
},
4849
},
4950
});

src/design-system/text/text.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ const colors: TypographyVariants['color'][] = [
8686
'error',
8787
'success',
8888
'accent',
89+
'warning',
8990
];
9091

9192
export const Overview = (): JSX.Element => (
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import * as React from 'react';
2+
import type { SVGProps } from 'react';
3+
const SvgWarningIconCirclecomponent = (props: SVGProps<SVGSVGElement>) => (
4+
<svg
5+
xmlns="http://www.w3.org/2000/svg"
6+
width={20}
7+
height={20}
8+
fill="none"
9+
{...props}
10+
>
11+
<path
12+
stroke="currentColor"
13+
strokeLinecap="round"
14+
strokeLinejoin="round"
15+
strokeWidth={2}
16+
d="M10 6v4m0 4h.01M19 10a9 9 0 1 1-18 0 9 9 0 0 1 18 0"
17+
/>
18+
</svg>
19+
);
20+
export default SvgWarningIconCirclecomponent;

src/icons/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,5 @@ export { default as UserGroupGradientComponent } from './UserGroupGradientCompon
5959
export { default as UserGroupComponent } from './UserGroupComponent';
6060
export { default as VideoGradientComponent } from './VideoGradientComponent';
6161
export { default as WalletComponent } from './WalletComponent';
62+
export { default as WarningIconCircleComponent } from './WarningIconCircleComponent';
6263
export { default as WarningIconTriangleComponent } from './WarningIconTriangleComponent';
Lines changed: 5 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)