diff --git a/packages/web-components/src/components/link/link.ts b/packages/web-components/src/components/link/link.ts index cb08f0a4acc..777f90070de 100644 --- a/packages/web-components/src/components/link/link.ts +++ b/packages/web-components/src/components/link/link.ts @@ -13,6 +13,8 @@ import BXLink from 'carbon-web-components/es/components/link/link.js'; /** * Link. + * + * @csspart link The link element displayed as an tag (regular link) or
(disabled link) */ class DDSLink extends BXLink { @query('#link') @@ -39,7 +41,7 @@ class DDSLink extends BXLink { protected _renderDisabledLink() { const { _classes: classes } = this; return html` -${this._renderInner()}
+${this._renderInner()}
`; } @@ -64,6 +66,7 @@ class DDSLink extends BXLink { id="link" role="${ifNonNull(linkRole)}" class="${classes}" + part="link" download="${ifNonNull(download)}" href="${ifNonNull(href)}" hreflang="${ifNonNull(hreflang)}" diff --git a/packages/web-components/tests/snapshots/dds-card-cta-footer.md b/packages/web-components/tests/snapshots/dds-card-cta-footer.md index e828bca59d4..1eb90554d60 100644 --- a/packages/web-components/tests/snapshots/dds-card-cta-footer.md +++ b/packages/web-components/tests/snapshots/dds-card-cta-footer.md @@ -8,6 +8,7 @@