Skip to content

Commit a3397b2

Browse files
committed
docs(/styled/button): fix heading
1 parent 163c349 commit a3397b2

File tree

1 file changed

+10
-10
lines changed
  • apps/website/src/routes/docs/styled/button

1 file changed

+10
-10
lines changed

apps/website/src/routes/docs/styled/button/index.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Displays a button or a component that looks like a button.
44

55
## Installation
66

7-
### Run the following cli command or copy/paste the component code into your project
7+
**Run the following cli command or copy/paste the component code into your project**
88

99
```sh
1010
qwik-ui add button
@@ -18,25 +18,25 @@ import { cva, type VariantProps } from 'class-variance-authority';
1818
// TODO: Create a RFC of the variants and explaining the thought process behind them
1919

2020
export const buttonVariants = cva(
21-
'inline-flex items-center justify-center text-sm font-medium rounded disabled:pointer-events-none disabled:opacity-50 focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-1',
21+
'inline-flex items-center justify-center rounded text-sm font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50',
2222
{
2323
variants: {
2424
look: {
2525
primary:
26-
'bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm transition-all duration-100 active:press active:shadow-base border-base',
26+
'border-base bg-primary text-primary-foreground shadow-sm transition-all duration-100 hover:bg-primary/90 active:shadow-base active:press',
2727
secondary:
28-
'bg-secondary text-secondary-foreground hover:bg-secondary/90 shadow-sm transition-all duration-100 active:press active:shadow-base border-base',
28+
'border-base bg-secondary text-secondary-foreground shadow-sm transition-all duration-100 hover:bg-secondary/90 active:shadow-base active:press',
2929
alert:
30-
'bg-alert text-alert-foreground hover:bg-alert/90 shadow-sm transition-all duration-100 active:press active:shadow-base border-base',
30+
'border-base bg-alert text-alert-foreground shadow-sm transition-all duration-100 hover:bg-alert/90 active:shadow-base active:press',
3131
outline:
32-
'shadow-sm transition-all duration-100 active:press active:shadow-base bg-background text-foreground border hover:bg-accent',
32+
'border bg-background text-foreground shadow-sm transition-all duration-100 hover:bg-accent active:shadow-base active:press',
3333
ghost: 'text-accent-foreground hover:bg-accent',
34-
link: 'text-foreground hover:underline hover:underline-offset-2 hover:text-foreground/80 hover:bg-transparent',
34+
link: 'text-foreground hover:bg-transparent hover:text-foreground/80 hover:underline hover:underline-offset-2',
3535
},
3636
size: {
37-
sm: 'px-2 h-8 py-1.5 text-sm',
38-
md: 'px-4 h-12 py-3 text-base',
39-
lg: ' px-8 h-16 py-4 text-lg',
37+
sm: 'h-8 px-2 py-1.5 text-sm',
38+
md: 'h-12 px-4 py-3 text-base',
39+
lg: ' h-16 px-8 py-4 text-lg',
4040
icon: 'h-10 w-10',
4141
},
4242
},

0 commit comments

Comments
 (0)