From 219745c4ba1d4aa160e20baa1103b200bcc37496 Mon Sep 17 00:00:00 2001 From: Valentin-Sorin-Nicolae <141405307+Valentin-Sorin-Nicolae@users.noreply.github.com> Date: Fri, 12 Jul 2024 17:05:38 +0300 Subject: [PATCH] feat(tag): add shadow parts (#11922) --- packages/carbon-web-components/src/components/tag/tag.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/carbon-web-components/src/components/tag/tag.ts b/packages/carbon-web-components/src/components/tag/tag.ts index 6545a05a588..46c15f24017 100644 --- a/packages/carbon-web-components/src/components/tag/tag.ts +++ b/packages/carbon-web-components/src/components/tag/tag.ts @@ -1,7 +1,7 @@ /** * @license * - * Copyright IBM Corp. 2019, 2023 + * Copyright IBM Corp. 2019, 2024 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. @@ -25,6 +25,8 @@ export { TAG_SIZE, TAG_TYPE }; * * @fires cds-tag-beingclosed - The custom event fired as the element is being closed * @fires cds-tag-closed - The custom event fired after the element has been closed + * + * @csspart close-icon - The close icon. Usage `cds-tag::part(close-icon)` */ @customElement(`${prefix}-tag`) class CDSTag extends HostListenerMixin(FocusMixin(LitElement)) { @@ -144,7 +146,10 @@ class CDSTag extends HostListenerMixin(FocusMixin(LitElement)) { ${filter ? html` - `