Skip to content

Commit cb9a825

Browse files
committed
lil fixes
1 parent 314073f commit cb9a825

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

docs/app/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,11 @@ export default function DesignSystemPage() {
248248
<PageContainer>
249249
<Heading as="h2" size="xl" className="mb-3">Buttons</Heading>
250250
<Prose className="mb-8">
251-
<p className="lead">Use buttons for actions and links for navigation. Lead with a single primary (default) button per view; use outline for secondary actions and ghost for low-emphasis or repeated ones. On dark or coloured backgrounds, switch to the white and white-outline variants.</p>
251+
<p className="lead">Use buttons for calls to action and interactions on on the page. Lead with a single primary (default) button per view; use outline for secondary actions and ghost for low-emphasis or repeated ones. On dark or coloured backgrounds, switch to the white and white-outline variants.</p>
252252
</Prose>
253253
<div className="space-y-6">
254254
<div>
255-
<Body size="sm" className="text-muted-foreground mb-3">Default</Body>
255+
<Body size="sm" className="text-muted-foreground mb-3">Primary</Body>
256256
<div className="space-x-3">
257257
<Button size="sm">Small</Button>
258258
<Button>Default</Button>

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
packages:
2+
- "."
23
- "docs"

src/components/button.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { cva, type VariantProps } from "class-variance-authority"
66
import { cn } from "../utils"
77

88
const buttonVariants = cva(
9-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl font-semibold transition-all duration-300 ease-in-out hover:rounded-[18px] active:rounded-6xl active:duration-350 active:delay-0 delay-40 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-[1.25em] shrink-0 [&_svg]:shrink-0 [&_svg]:transition-transform [&_svg]:duration-200 [&_svg]:ease-out [&_svg]:delay-40 active:[&_svg]:delay-0 motion-reduce:[&_svg]:transition-none hover:[&_svg:last-child]:translate-x-1 focus-visible:[&_svg:last-child]:translate-x-1 active:[&_svg:last-child]:translate-x-1 outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 border-2 border-transparent",
9+
"inline-flex items-center justify-center align-middle gap-2 whitespace-nowrap rounded-xl font-semibold transition-all duration-300 ease-in-out hover:rounded-[18px] active:rounded-6xl active:duration-350 active:delay-0 delay-40 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-[1.25em] shrink-0 [&_svg]:shrink-0 [&_[data-arrow]]:transition-transform [&_[data-arrow]]:duration-200 [&_[data-arrow]]:ease-out [&_[data-arrow]]:delay-40 active:[&_[data-arrow]]:delay-0 motion-reduce:[&_[data-arrow]]:transition-none hover:[&_[data-arrow]]:translate-x-0.5 focus-visible:[&_[data-arrow]]:translate-x-0.5 active:[&_[data-arrow]]:translate-x-1.5 outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 border-2 border-transparent",
1010
{
1111
variants: {
1212
variant: {
@@ -57,7 +57,9 @@ function Button({
5757
{...props}
5858
>
5959
{withLink ? <Slottable>{children}</Slottable> : children}
60-
{withLink && <ArrowRight className="size-[1.25em]" aria-hidden="true" />}
60+
{withLink && (
61+
<ArrowRight data-arrow="" className="size-[1.25em]" aria-hidden="true" />
62+
)}
6163
</Comp>
6264
)
6365
}

src/components/hero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function Hero({
8080
) : null}
8181
</div>
8282
{cta ? (
83-
<div className="fade-in-delay-1 flex flex-wrap items-center gap-3">
83+
<div className="fade-in-delay-1 flex flex-wrap items-center mt-8 gap-3">
8484
{cta}
8585
</div>
8686
) : null}

0 commit comments

Comments
 (0)