Skip to content

Commit e0ead02

Browse files
committed
fix(docs): update card component titles to use strong tags
1 parent e6051f2 commit e0ead02

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

apps/docs/src/content/docs/components/card.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The `s-card` attribute provides a structured container for content with optional
2828
code={`<div class="demo-grid">
2929
<article s-card>
3030
<header s-card-header>
31-
<h4 style="margin: 0;">Card with Header</h4>
31+
<strong style="display: block; margin: 0;">Card with Header</strong>
3232
</header>
3333
<div s-card-body>
3434
<p style="margin: 0;">Card body content goes here.</p>
@@ -39,7 +39,7 @@ The `s-card` attribute provides a structured container for content with optional
3939
</article>
4040
<article s-card>
4141
<div s-card-body>
42-
<h4 s-card-title>Card Title</h4>
42+
<p s-card-title>Card Title</p>
4343
<p s-card-subtitle>Card subtitle text</p>
4444
<p style="margin: 0;">Using semantic title/subtitle attributes.</p>
4545
</div>
@@ -62,7 +62,7 @@ The `s-card` attribute provides a structured container for content with optional
6262
/>
6363
</div>
6464
<div s-card-body>
65-
<h4 s-card-title>Media Card</h4>
65+
<p s-card-title>Media Card</p>
6666
<p s-card-subtitle>With image container</p>
6767
<p style="margin: 0;">Using <code>s-card-media</code> for 16:9 images.</p>
6868
</div>
@@ -77,7 +77,7 @@ The `s-card` attribute provides a structured container for content with optional
7777
/>
7878
</div>
7979
<div s-card-body>
80-
<h4 s-card-title>Horizontal Card</h4>
80+
<p s-card-title>Horizontal Card</p>
8181
<p s-card-subtitle>Side-by-side layout</p>
8282
<p style="margin: 0;">Using <code>s-horizontal</code> modifier.</p>
8383
</div>
@@ -92,19 +92,19 @@ The `s-card` attribute provides a structured container for content with optional
9292
code={`<div class="demo-grid">
9393
<article s-card="flat">
9494
<div s-card-body>
95-
<h4 style="margin: 0 0 var(--s-space-2);">Flat Card</h4>
95+
<strong style="display: block; margin: 0 0 var(--s-space-2);">Flat Card</strong>
9696
<p style="margin: 0; font-size: var(--s-text-sm);"><code>s-card="flat"</code></p>
9797
</div>
9898
</article>
9999
<article s-card="elevated">
100100
<div s-card-body>
101-
<h4 style="margin: 0 0 var(--s-space-2);">Elevated Card</h4>
101+
<strong style="display: block; margin: 0 0 var(--s-space-2);">Elevated Card</strong>
102102
<p style="margin: 0; font-size: var(--s-text-sm);"><code>s-card="elevated"</code></p>
103103
</div>
104104
</article>
105105
<article s-card="outline">
106106
<div s-card-body>
107-
<h4 style="margin: 0 0 var(--s-space-2);">Outline Card</h4>
107+
<strong style="display: block; margin: 0 0 var(--s-space-2);">Outline Card</strong>
108108
<p style="margin: 0; font-size: var(--s-text-sm);"><code>s-card="outline"</code></p>
109109
</div>
110110
</article>
@@ -117,7 +117,7 @@ The `s-card` attribute provides a structured container for content with optional
117117
title="Hoverable card with lift effect"
118118
code={`<article s-card s-interactive>
119119
<div s-card-body>
120-
<h4 style="margin: 0 0 var(--s-space-2);">Hover Me!</h4>
120+
<strong style="display: block; margin: 0 0 var(--s-space-2);">Hover Me!</strong>
121121
<p style="margin: 0; font-size: var(--s-text-sm);"><code>s-interactive</code> adds lift on hover.</p>
122122
</div>
123123
</article>`}

packages/core/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
"main": "./dist/shift.css",
77
"types": "./types/index.d.ts",
88
"exports": {
9-
".": "./dist/shift.css",
9+
".": {
10+
"style": "./dist/shift.css",
11+
"default": "./dist/shift.css"
12+
},
1013
"./min": "./dist/shift.min.css",
1114
"./reset": "./dist/reset.css",
1215
"./tokens": "./dist/tokens.css",

0 commit comments

Comments
 (0)