From 6ecdee99f5bd6af56207c65560292f4ac46ac94a Mon Sep 17 00:00:00 2001 From: John Kaeser Date: Tue, 8 Feb 2022 00:10:49 -0500 Subject: [PATCH] fix(content-block-mixed): remove conflicting element IDs (#8219) ### Related Ticket(s) Resolves #8011 ### Description Design programs often automatically add IDs to image layers when exporting as SVG. In our case, these IDs do not serve a purpose, and removing them resolves some errors reported by the `yarn test:a11y` script. ### Changelog **Changed** - Removed `id` attributes from SVG layers in the `dds-content-block-mixed` stories. - Removed `id` attributes from SVG layers in the `dds-content-group-pictogram` stories. --- .../__stories__/content-block-mixed.stories.ts | 14 +++++++------- .../content-group-pictograms.stories.ts | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/web-components/src/components/content-block-mixed/__stories__/content-block-mixed.stories.ts b/packages/web-components/src/components/content-block-mixed/__stories__/content-block-mixed.stories.ts index d589fe64067..9e9bc23f196 100644 --- a/packages/web-components/src/components/content-block-mixed/__stories__/content-block-mixed.stories.ts +++ b/packages/web-components/src/components/content-block-mixed/__stories__/content-block-mixed.stories.ts @@ -2,7 +2,7 @@ /** * @license * - * Copyright IBM Corp. 2020, 2021 + * Copyright IBM Corp. 2020, 2022 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. @@ -181,8 +181,8 @@ export const Default = ({ parameters }) => { viewBox="8 8 32 32" xml:space="preserve" > - - + + + ${itemHeading} ${itemCopy} @@ -269,8 +269,8 @@ export const WithLinkList = ({ parameters }) => { viewBox="8 8 32 32" xml:space="preserve" > - - + + + ${itemHeading} ${itemCopy} diff --git a/packages/web-components/src/components/content-group-pictograms/__stories__/content-group-pictograms.stories.ts b/packages/web-components/src/components/content-group-pictograms/__stories__/content-group-pictograms.stories.ts index f943639d892..9c7086ca2e6 100644 --- a/packages/web-components/src/components/content-group-pictograms/__stories__/content-group-pictograms.stories.ts +++ b/packages/web-components/src/components/content-group-pictograms/__stories__/content-group-pictograms.stories.ts @@ -2,7 +2,7 @@ /** * @license * - * Copyright IBM Corp. 2020, 2021 + * Copyright IBM Corp. 2020, 2022 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. @@ -103,8 +103,8 @@ export const Default = ({ parameters }) => { viewBox="8 8 32 32" xml:space="preserve" > - - + + + ${heading} ${copy}