Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/bold-webs-read.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@example/ui-playground': patch
'@genseki/ui': patch
---

fix: separator class overriding.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ function BasicSeparatorExamples() {
</div>
<div className="flex h-24 items-center gap-4">
<span className="text-sm text-muted-foreground">Top</span>
<Separator orientation="vertical" className="h-full" />
<Separator
orientation="vertical"
className="bg-blue-500 data-[orientation=vertical]:w-4"
/>
<span className="text-sm text-muted-foreground">Bottom</span>
</div>
<div className="flex items-center gap-4">
Expand Down
4 changes: 3 additions & 1 deletion packages/ui/src/components/primitives/separator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import React from 'react'
import * as SeparatorPrimitive from '@radix-ui/react-separator'
import { cva, type VariantProps } from 'class-variance-authority'

import { cn } from '../../utils/cn'

/**
* Shadcn component
*/
Expand Down Expand Up @@ -39,7 +41,7 @@ function Separator({
data-slot="separator"
decorative={decorative}
orientation={orientation}
className={separator({ variant, className })}
className={cn(separator({ variant }), className)}
{...props}
/>
)
Expand Down
Loading