diff --git a/packages/components/src/Button/button.stories.tsx b/packages/components/src/Button/button.stories.tsx index 5852b80336..bb062e629c 100644 --- a/packages/components/src/Button/button.stories.tsx +++ b/packages/components/src/Button/button.stories.tsx @@ -76,7 +76,7 @@ export const linkWithIcon = Template.bind(null); linkWithIcon.args = { children: ( <> - Link with icon + Link with icon ), color: "success", @@ -87,7 +87,7 @@ export const outlineWithIcon = Template.bind(null); outlineWithIcon.args = { children: ( <> - Outline with icon + Outline with icon ), color: "warning", diff --git a/packages/components/src/SvgIcon/SvgIcon.stories.tsx b/packages/components/src/SvgIcon/SvgIcon.stories.tsx index f9338aab65..ea21fadda2 100644 --- a/packages/components/src/SvgIcon/SvgIcon.stories.tsx +++ b/packages/components/src/SvgIcon/SvgIcon.stories.tsx @@ -100,11 +100,11 @@ export const InText = ({ icon, ...rest }: Args) => { return ( The svg icon defaults to the surrounding text size ( - , - 1em), but often looks better with the line height ( + + , 1em), but often looks better with the line height ( diff --git a/packages/components/src/SvgIcon/SvgIcon.tsx b/packages/components/src/SvgIcon/SvgIcon.tsx index f9698fa585..3fdd50a389 100644 --- a/packages/components/src/SvgIcon/SvgIcon.tsx +++ b/packages/components/src/SvgIcon/SvgIcon.tsx @@ -42,7 +42,7 @@ interface InformativeIconProps extends IconPropsBase { * Use "informative" when the icon **_does_** provide additional meaning to other text on the * page. You'll be required to pass in a title to label the icon. */ - type: "informative"; + purpose: "informative"; title: string; } @@ -54,7 +54,7 @@ interface DecorativeIconProps extends IconPropsBase { * associated text. Basically the icon is for show and people don't need it to understand what's * on the page. */ - type: "decorative"; + purpose: "decorative"; } export type SvgIconProps = DecorativeIconProps | InformativeIconProps; @@ -100,7 +100,7 @@ function SvgIcon(props: SvgIconProps) { xmlns: "http://www.w3.org/2000/svg", }; - if (props.type === "informative") { + if (props.purpose === "informative") { return ( {props.title} diff --git a/packages/components/src/Tag/Tag.stories.tsx b/packages/components/src/Tag/Tag.stories.tsx index 49e8ade247..5a1ccbc6d0 100644 --- a/packages/components/src/Tag/Tag.stories.tsx +++ b/packages/components/src/Tag/Tag.stories.tsx @@ -62,12 +62,12 @@ OutlineVariants.args = { export const WithIcon = Template.bind(null); WithIcon.args = { ...defaultArgs, - icon: , + icon: , }; export const WithLongTextAndIcon = Template.bind(null); WithLongTextAndIcon.args = { ...defaultArgs, children: "This tag has a really long text message", - icon: , + icon: , }; diff --git a/packages/components/src/common/CloseButton/CloseButton.tsx b/packages/components/src/common/CloseButton/CloseButton.tsx index 4cc09c9f2c..757ba7fde0 100644 --- a/packages/components/src/common/CloseButton/CloseButton.tsx +++ b/packages/components/src/common/CloseButton/CloseButton.tsx @@ -36,7 +36,7 @@ const CloseButton = ({ className, color, onClose, size }: CloseButtonProps) => ( onClick={onClose} variant="link" > - + ); diff --git a/packages/components/src/common/Notifications/NotificationIcon/NotificationIcon.tsx b/packages/components/src/common/Notifications/NotificationIcon/NotificationIcon.tsx index 4cbd720125..4129b20e13 100644 --- a/packages/components/src/common/Notifications/NotificationIcon/NotificationIcon.tsx +++ b/packages/components/src/common/Notifications/NotificationIcon/NotificationIcon.tsx @@ -53,7 +53,7 @@ const NotificationIcon = ({ variant }: Props) => { return (
- +
); };