diff --git a/packages/web-components/src/components/content-item/__stories__/content-item.stories.react.tsx b/packages/web-components/src/components/content-item/__stories__/content-item.stories.react.tsx index 283179ba441..be391ccc880 100644 --- a/packages/web-components/src/components/content-item/__stories__/content-item.stories.react.tsx +++ b/packages/web-components/src/components/content-item/__stories__/content-item.stories.react.tsx @@ -35,34 +35,107 @@ const contentItemTypeOptions = { }; const app = - ; - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + const pictogram = +> + strokeLinejoin="round" + strokeMiterlimit="10" + strokeWidth="1.106" + d="M44.211 36.138H3.789c-1.71 0-3.11-1.366-3.11-3.035V7.31c0-1.669 1.4-3.034 3.11-3.034h40.422c1.71 0 3.11 1.365 3.11 3.034v25.793c0 1.67-1.4 3.035-3.11 3.035zm-31.094 7.586h21.766M24 36.138v7.586M.68 28.552h46.64" + > ; export const Default = (args) => { @@ -74,17 +147,16 @@ export const Default = (args) => { pictogramType, copy, showCopy, - ctaStyle, ctaCopy, } = args?.ContentItem ?? {}; return ( {type === 'statistics' ? 10% : ``} {type === 'pictogram' ? pictogramType === 'pictogram' - ? pictogram - : pictogramType === 'app icon' - ? app - : `` + ? pictogram + : pictogramType === 'app icon' + ? app + : `` : ``} {type === 'media' ? mediaType === 'image' @@ -103,16 +175,12 @@ export const Default = (args) => { ) : ``} {heading} {showCopy ? {copy} : ''} - {ctaStyle === 'text' ? ( {ctaCopy} - ) : ( - '' - )} ); }; @@ -165,7 +233,6 @@ export default { 'This area of NLP takes "real world" text and applies a symbolic ' + 'system for a machine to interpret its meaning, using formal logic; structures ' + 'that describe the various relationships between concepts (ontologies); and other semantic tools.', - ctaStyle: select('CTA style:', ['text', 'button'], 'text'), ctaCopy: textNullable('CTA copy:', 'Learn more about NLP'), }; }, diff --git a/packages/web-components/src/components/content-item/__stories__/content-item.stories.ts b/packages/web-components/src/components/content-item/__stories__/content-item.stories.ts index 9b677507876..03e6e89b603 100644 --- a/packages/web-components/src/components/content-item/__stories__/content-item.stories.ts +++ b/packages/web-components/src/components/content-item/__stories__/content-item.stories.ts @@ -135,7 +135,6 @@ export const Default = (args) => { pictogramType, copy, showCopy, - ctaStyle, ctaCopy, } = args?.ContentItem ?? {}; console.log(type, mediaType); @@ -174,16 +173,12 @@ export const Default = (args) => { ${showCopy ? html` ${copy} ` : ``} - ${ctaStyle === 'text' - ? html` - ${ctaCopy} - ` - : ``} + ${ctaCopy} `; }; @@ -234,7 +229,6 @@ export default { 'This area of NLP takes "real world" text and applies a symbolic ' + 'system for a machine to interpret its meaning, using formal logic; structures ' + 'that describe the various relationships between concepts (ontologies); and other semantic tools.', - ctaStyle: select('CTA style:', ['text', 'button'], 'text'), ctaCopy: textNullable('CTA copy:', 'Learn more about NLP'), }; },