Skip to content

Commit 1978ce9

Browse files
authored
Fix disabled combobox items (#312)
1 parent 2cf2277 commit 1978ce9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ruby_ui/combobox/combobox_item.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ def default_attrs
1313
class: [
1414
"flex flex-row w-full text-wrap [&>span,&>div]:truncate gap-2 items-center rounded-sm px-2 py-1 text-sm outline-none cursor-pointer",
1515
"select-none has-[:checked]:bg-accent hover:bg-accent p-2",
16-
"[&>svg]:pointer-events-none [&>svg]:size-4 [&>svg]:shrink-0 aria-[current=true]:bg-accent aria-[current=true]:ring aria-[current=true]:ring-offset-2"
16+
"[&>svg]:pointer-events-none [&>svg]:size-4 [&>svg]:shrink-0 aria-[current=true]:bg-accent aria-[current=true]:ring aria-[current=true]:ring-offset-2",
17+
"has-disabled:opacity-50 has-disabled:cursor-not-allowed"
1718
],
1819
role: "option",
1920
data: {

0 commit comments

Comments
 (0)