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 (