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` -

+ `; } @@ -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 @@
diff --git a/packages/web-components/tests/snapshots/dds-card-cta.md b/packages/web-components/tests/snapshots/dds-card-cta.md index f16fb096f7e..9406323f6c6 100644 --- a/packages/web-components/tests/snapshots/dds-card-cta.md +++ b/packages/web-components/tests/snapshots/dds-card-cta.md @@ -83,6 +83,7 @@ class="bx--card__footer bx--link bx--link-with-icon bx--link-with-icon__icon-right dds-ce--card__footer" href="#" id="link" + part="link" > diff --git a/packages/web-components/tests/snapshots/dds-feature-card-block-large.md b/packages/web-components/tests/snapshots/dds-feature-card-block-large.md index eb0cb14be45..f8e204539c4 100644 --- a/packages/web-components/tests/snapshots/dds-feature-card-block-large.md +++ b/packages/web-components/tests/snapshots/dds-feature-card-block-large.md @@ -47,6 +47,7 @@ class="bx--card bx--card--link bx--feature-card-block-large bx--tile bx--tile--clickable" href="https://example.com" id="link" + part="link" > diff --git a/packages/web-components/tests/snapshots/dds-feature-card-block-medium.md b/packages/web-components/tests/snapshots/dds-feature-card-block-medium.md index d2a7a751103..bad87c25e8b 100644 --- a/packages/web-components/tests/snapshots/dds-feature-card-block-medium.md +++ b/packages/web-components/tests/snapshots/dds-feature-card-block-medium.md @@ -57,6 +57,7 @@ class="bx--card bx--card--link bx--feature-card bx--tile bx--tile--clickable" href="https://example.com" id="link" + part="link" > diff --git a/packages/web-components/tests/snapshots/dds-feature-card.md b/packages/web-components/tests/snapshots/dds-feature-card.md index 69b7aa484bf..4985ad9a588 100644 --- a/packages/web-components/tests/snapshots/dds-feature-card.md +++ b/packages/web-components/tests/snapshots/dds-feature-card.md @@ -44,6 +44,7 @@ class="bx--card bx--card--link bx--feature-card bx--tile bx--tile--clickable" href="https://example.com" id="link" + part="link" > diff --git a/packages/web-components/tests/snapshots/dds-footer-nav-item.md b/packages/web-components/tests/snapshots/dds-footer-nav-item.md index b7b670d2bbc..da0627e2d4e 100644 --- a/packages/web-components/tests/snapshots/dds-footer-nav-item.md +++ b/packages/web-components/tests/snapshots/dds-footer-nav-item.md @@ -8,6 +8,7 @@ @@ -21,6 +22,7 @@ title-text-foo diff --git a/packages/web-components/tests/snapshots/dds-link-with-icon.md b/packages/web-components/tests/snapshots/dds-link-with-icon.md index f0b3130ad23..76d5a5c17fc 100644 --- a/packages/web-components/tests/snapshots/dds-link-with-icon.md +++ b/packages/web-components/tests/snapshots/dds-link-with-icon.md @@ -8,6 +8,7 @@ @@ -25,6 +26,7 @@
country-foo diff --git a/packages/web-components/tests/snapshots/dds-masthead-logo.md b/packages/web-components/tests/snapshots/dds-masthead-logo.md index 4c618b14fa5..b51b6a4f25d 100644 --- a/packages/web-components/tests/snapshots/dds-masthead-logo.md +++ b/packages/web-components/tests/snapshots/dds-masthead-logo.md @@ -9,6 +9,7 @@ aria-label="IBM logo" href="https://www.ibm.com/" id="link" + part="link" > @@ -23,6 +24,7 @@ aria-label="IBM logo" href="https://cloud.ibm.com/" id="link" + part="link" > diff --git a/packages/web-components/tests/snapshots/dds-region-item.md b/packages/web-components/tests/snapshots/dds-region-item.md index 779705875af..b8d9540b35b 100644 --- a/packages/web-components/tests/snapshots/dds-region-item.md +++ b/packages/web-components/tests/snapshots/dds-region-item.md @@ -9,6 +9,7 @@ class="bx--link" href="about:blank" id="link" + part="link" >