Skip to content

Commit 79d3b31

Browse files
authored
fix: breadcrumb class override (#884)
1 parent 85e7d15 commit 79d3b31

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ const Root = component$<BreadcrumbProps>(() => {
3737
const List = component$<PropsOf<'ol'>>((props) => {
3838
return (
3939
<ol
40+
{...props}
4041
class={cn(
4142
' flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5',
4243
props.class,
4344
)}
44-
{...props}
4545
>
4646
<Slot />
4747
</ol>
@@ -50,7 +50,7 @@ const List = component$<PropsOf<'ol'>>((props) => {
5050

5151
const Item = component$<PropsOf<'li'>>((props) => {
5252
return (
53-
<li class={cn('inline-flex items-center gap-1.5', props.class)} {...props}>
53+
<li {...props} class={cn('inline-flex items-center gap-1.5', props.class)}>
5454
<Slot />
5555
</li>
5656
);
@@ -60,11 +60,11 @@ const Link = component$<PropsOf<'a'> & { asChild?: boolean }>((props) => {
6060
const Comp = props.asChild ? Slot : 'a';
6161
return (
6262
<Comp
63+
{...props}
6364
class={cn(
6465
'text-muted-foreground transition-colors hover:text-foreground',
6566
props.class,
6667
)}
67-
{...props}
6868
>
6969
{!props.asChild && <Slot />}
7070
</Comp>
@@ -85,8 +85,8 @@ const Page = component$<PropsOf<'span'>>((props) => {
8585
role="link"
8686
aria-disabled="true"
8787
aria-current="page"
88-
class={cn('font-normal text-foreground', props.class)}
8988
{...props}
89+
class={cn('font-normal text-foreground', props.class)}
9090
>
9191
<Slot />
9292
</span>

packages/kit-styled/src/components/breadcrumb/breadcrumb.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ const Root = component$<BreadcrumbProps>(() => {
1414
const List = component$<PropsOf<'ol'>>((props) => {
1515
return (
1616
<ol
17+
{...props}
1718
class={cn(
1819
' flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5',
1920
props.class,
2021
)}
21-
{...props}
2222
>
2323
<Slot />
2424
</ol>
@@ -27,7 +27,7 @@ const List = component$<PropsOf<'ol'>>((props) => {
2727

2828
const Item = component$<PropsOf<'li'>>((props) => {
2929
return (
30-
<li class={cn('inline-flex items-center gap-1.5', props.class)} {...props}>
30+
<li {...props} class={cn('inline-flex items-center gap-1.5', props.class)}>
3131
<Slot />
3232
</li>
3333
);
@@ -37,11 +37,11 @@ const Link = component$<PropsOf<'a'> & { asChild?: boolean }>((props) => {
3737
const Comp = props.asChild ? Slot : 'a';
3838
return (
3939
<Comp
40+
{...props}
4041
class={cn(
4142
'text-muted-foreground transition-colors hover:text-foreground',
4243
props.class,
4344
)}
44-
{...props}
4545
>
4646
{!props.asChild && <Slot />}
4747
</Comp>
@@ -62,8 +62,8 @@ const Page = component$<PropsOf<'span'>>((props) => {
6262
role="link"
6363
aria-disabled="true"
6464
aria-current="page"
65-
class={cn('font-normal text-foreground', props.class)}
6665
{...props}
66+
class={cn('font-normal text-foreground', props.class)}
6767
>
6868
<Slot />
6969
</span>

0 commit comments

Comments
 (0)