From 81f0dcf44bfbc0e679d63d969df12021c84c8f1d 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:02:40 +0300 Subject: [PATCH] feat(copy): add shadow parts (#11920) * feat(copy): add shadow parts * Update packages/carbon-web-components/src/components/copy/copy.ts Co-authored-by: Matthew Oliveira * Update packages/carbon-web-components/src/components/copy/copy.ts Co-authored-by: Matthew Oliveira * feat(copy): add shadow parts --------- Co-authored-by: Matthew Oliveira --- packages/carbon-web-components/src/components/copy/copy.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/carbon-web-components/src/components/copy/copy.ts b/packages/carbon-web-components/src/components/copy/copy.ts index bf47bfe566b..cc5ae53ea45 100644 --- a/packages/carbon-web-components/src/components/copy/copy.ts +++ b/packages/carbon-web-components/src/components/copy/copy.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. @@ -17,6 +17,8 @@ import CDSIconButton from '../icon-button/icon-button'; * Copy. * * @element cds-copy + * + * @csspart tooltip-content - The content. Usage `cds-copy::part(tooltip-content)` */ @customElement(`${prefix}-copy`) class CDSCopy extends CDSIconButton { @@ -81,7 +83,7 @@ class CDSCopy extends CDSIconButton { // eslint-disable-next-line class-methods-use-this protected _renderTooltipContent() { return html` - + ${this._showFeedback ? this.feedback : html``}