From 8e6b754ee49aaf8c4704ed6ff34da155a26a8f21 Mon Sep 17 00:00:00 2001 From: Matthew Oliveira Date: Fri, 13 Oct 2023 11:56:51 -0400 Subject: [PATCH] fix(quote): make quote-link-with-icon available in quote cdn bundle (#11020) ### Related Ticket(s) Relates to https://github.com/carbon-design-system/carbon-for-ibm-dotcom/issues/10636 ### Description The `` component was not included with the main `` component, leading to a broken experience were a user to attempt to use it with the main quote CDN bundle like the Story example does, for example: https://codepen.io/m4olivei/pen/jOXdvjK It looks like there is just a missing import in the `quote/index.ts` file. We add that here and update docs and Sandbox example to use the `` component. ### Changelog **Changed** - Import `` from the main `` index.ts --- .../examples/codesandbox/components/quote/index.html | 4 ++-- .../src/components/quote/__stories__/README.stories.mdx | 4 ++-- packages/web-components/src/components/quote/index.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/web-components/examples/codesandbox/components/quote/index.html b/packages/web-components/examples/codesandbox/components/quote/index.html index 45500b1791d..969a69d2275 100644 --- a/packages/web-components/examples/codesandbox/components/quote/index.html +++ b/packages/web-components/examples/codesandbox/components/quote/index.html @@ -30,7 +30,7 @@ IBM Cloud - + Link with Icon - + diff --git a/packages/web-components/src/components/quote/__stories__/README.stories.mdx b/packages/web-components/src/components/quote/__stories__/README.stories.mdx index 4677c363f53..4e3ecc2c486 100644 --- a/packages/web-components/src/components/quote/__stories__/README.stories.mdx +++ b/packages/web-components/src/components/quote/__stories__/README.stories.mdx @@ -42,7 +42,7 @@ import '@carbon/ibmdotcom-web-components/es/components/quote/index.js'; This is the third line of source - + Link with Icon - + ``` diff --git a/packages/web-components/src/components/quote/index.ts b/packages/web-components/src/components/quote/index.ts index 6e6ec8ea0ad..28e758edf19 100644 --- a/packages/web-components/src/components/quote/index.ts +++ b/packages/web-components/src/components/quote/index.ts @@ -1,7 +1,7 @@ /** * @license * - * Copyright IBM Corp. 2020, 2021 + * Copyright IBM Corp. 2020, 2023 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. @@ -11,4 +11,4 @@ import './quote'; import './quote-source-bottom-copy'; import './quote-source-copy'; import './quote-source-heading'; -import '../link-with-icon/link-with-icon'; +import './quote-link-with-icon';