Skip to content

Commit

Permalink
feat: add warning text variation
Browse files Browse the repository at this point in the history
  • Loading branch information
pczeglik-iohk committed Jun 26, 2024
1 parent d36569a commit 1951c92
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/design-system/text/text.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const typography = recipe({
highlight: sx({ color: '$data_blue' }),
success: sx({ color: '$data_green' }),
error: sx({ color: '$data_pink' }),
warning: sx({ color: '$data_orange' }),
},
},
});
Expand Down
1 change: 1 addition & 0 deletions src/design-system/text/text.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ const colors: TypographyVariants['color'][] = [
'error',
'success',
'accent',
'warning',
];

export const Overview = (): JSX.Element => (
Expand Down
20 changes: 20 additions & 0 deletions src/icons/WarningIconCircleComponent.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import * as React from 'react';
import type { SVGProps } from 'react';
const SvgWarningIconCirclecomponent = (props: SVGProps<SVGSVGElement>) => (
<svg
xmlns="http://www.w3.org/2000/svg"
width={20}
height={20}
fill="none"
{...props}
>
<path
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M10 6v4m0 4h.01M19 10a9 9 0 1 1-18 0 9 9 0 0 1 18 0"
/>
</svg>
);
export default SvgWarningIconCirclecomponent;
1 change: 1 addition & 0 deletions src/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ export { default as UserGroupGradientComponent } from './UserGroupGradientCompon
export { default as UserGroupComponent } from './UserGroupComponent';
export { default as VideoGradientComponent } from './VideoGradientComponent';
export { default as WalletComponent } from './WalletComponent';
export { default as WarningIconCircleComponent } from './WarningIconCircleComponent';
export { default as WarningIconTriangleComponent } from './WarningIconTriangleComponent';
5 changes: 5 additions & 0 deletions src/icons/raw/warning-icon-circle.component.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1951c92

Please sign in to comment.