Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

fix(templates): replace bogus hrefs in Link and ClickableCard showcases (#2143)

Joey1a626261e7a6
diff --git a/packages/cli/templates/blocks/components/Card/ClickableCardShowcase.tsx b/packages/cli/templates/blocks/components/Card/ClickableCardShowcase.tsx
index 80babee86a..e04559d9ad 100644
--- a/packages/cli/templates/blocks/components/Card/ClickableCardShowcase.tsx
+++ b/packages/cli/templates/blocks/components/Card/ClickableCardShowcase.tsx
@@ -6,7 +6,7 @@ import {XDSText, XDSHeading} from '@xds/core/Text';
export default function ClickableCardShowcase() {
return (
- <XDSClickableCard label="Settings" href="/settings" width={320}>
+ <XDSClickableCard label="Settings" href="#" width={320}>
<XDSStack direction="vertical" gap={2}>
<XDSHeading level={4}>Settings</XDSHeading>
<XDSText type="body" color="secondary">
diff --git a/packages/cli/templates/blocks/components/Card/ClickableCardWithNestedButton.tsx b/packages/cli/templates/blocks/components/Card/ClickableCardWithNestedButton.tsx
index ef1e824ab5..4e03eb5e67 100644
--- a/packages/cli/templates/blocks/components/Card/ClickableCardWithNestedButton.tsx
+++ b/packages/cli/templates/blocks/components/Card/ClickableCardWithNestedButton.tsx
@@ -7,7 +7,7 @@ import {XDSButton} from '@xds/core/Button';
export default function ClickableCardWithNestedButton() {
return (
- <XDSClickableCard label="Product" href="/product/123" width={320}>
+ <XDSClickableCard label="Product" href="#" width={320}>
<XDSStack direction="vertical" gap={3}>
<XDSStack direction="vertical" gap={1}>
<XDSHeading level={4}>Wireless Headphones</XDSHeading>
diff --git a/packages/cli/templates/blocks/components/Link/LinkInlineLink.tsx b/packages/cli/templates/blocks/components/Link/LinkInlineLink.tsx
index f76d975e0e..6c9e788c26 100644
--- a/packages/cli/templates/blocks/components/Link/LinkInlineLink.tsx
+++ b/packages/cli/templates/blocks/components/Link/LinkInlineLink.tsx
@@ -7,7 +7,7 @@ export default function LinkInlineLink() {
return (
<XDSText type="body">
Read the{' '}
- <XDSLink href="/docs">
+ <XDSLink href="#">
documentation
</XDSLink>{' '}
for more information about using XDS components.
diff --git a/packages/cli/templates/blocks/components/Link/LinkShowcase.tsx b/packages/cli/templates/blocks/components/Link/LinkShowcase.tsx
index cf58cd4e40..266dcef4ee 100644
--- a/packages/cli/templates/blocks/components/Link/LinkShowcase.tsx
+++ b/packages/cli/templates/blocks/components/Link/LinkShowcase.tsx
@@ -4,7 +4,7 @@ import {XDSLink} from '@xds/core/Link';
export default function LinkShowcase() {
return (
- <XDSLink href="/docs" isStandalone>
+ <XDSLink href="#" isStandalone>
Documentation
</XDSLink>
);
diff --git a/packages/cli/templates/blocks/components/Link/LinksWithTooltips.tsx b/packages/cli/templates/blocks/components/Link/LinksWithTooltips.tsx
index e37c31a235..52c735522b 100644
--- a/packages/cli/templates/blocks/components/Link/LinksWithTooltips.tsx
+++ b/packages/cli/templates/blocks/components/Link/LinksWithTooltips.tsx
@@ -7,19 +7,19 @@ export default function LinksWithTooltips() {
return (
<XDSHStack gap={4} vAlign="center">
<XDSLink
- href="/settings"
+ href="#"
tooltip="Configure your account settings"
isStandalone>
Settings
</XDSLink>
<XDSLink
- href="/profile"
+ href="#"
tooltip="View and edit your profile"
isStandalone>
Profile
</XDSLink>
<XDSLink
- href="/help"
+ href="#"
tooltip="Get help and support"
color="secondary"
isStandalone>