diff --git a/packages/web-components/src/components/inline-loading/inline-loading.ts b/packages/web-components/src/components/inline-loading/inline-loading.ts
index d37b46085158..0d5ecfd425b0 100644
--- a/packages/web-components/src/components/inline-loading/inline-loading.ts
+++ b/packages/web-components/src/components/inline-loading/inline-loading.ts
@@ -13,7 +13,6 @@ import { classMap } from 'lit/directives/class-map.js';
import CheckmarkFilled16 from '@carbon/icons/lib/checkmark--filled/16.js';
import ErrorFilled16 from '@carbon/icons/lib/error--filled/16.js';
import { prefix } from '../../globals/settings';
-import LOADING_TYPE from '../loading/types';
import getLoadingIcon from '../loading/loading-icon';
import { INLINE_LOADING_STATE } from './defs';
import styles from './inline-loading.scss?lit';
@@ -60,7 +59,7 @@ class CDSInlineLoading extends LitElement {
});
return html`
- ${getLoadingIcon({ assistiveText, type: LOADING_TYPE.SMALL })}
+ ${getLoadingIcon({ description: assistiveText, small: true })}
`;
}
diff --git a/packages/web-components/src/components/loading/loading-icon.ts b/packages/web-components/src/components/loading/loading-icon.ts
index 5e95a4118ee5..b53e9a14fb13 100644
--- a/packages/web-components/src/components/loading/loading-icon.ts
+++ b/packages/web-components/src/components/loading/loading-icon.ts
@@ -9,7 +9,6 @@
import { html } from 'lit';
import { prefix } from '../../globals/settings';
-import LOADING_TYPE from './types';
/**
* @param Object options The options.
@@ -18,18 +17,18 @@ import LOADING_TYPE from './types';
* @returns The spinner icon.
*/
export default ({
- assistiveText,
- type,
+ description,
+ small,
}: {
- assistiveText?: string;
- type?: string;
+ description?: string;
+ small?: boolean;
}) => {
- const radius = type === LOADING_TYPE.SMALL ? '42' : '44';
+ const radius = small ? '42' : '44';
return html`