Skip to content

Commit ac08283

Browse files
authored
pt-[7px] (#342)
1 parent fefe729 commit ac08283

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ruby_ui/input/input.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ def default_attrs
2424
"placeholder:text-muted-foreground",
2525
"disabled:cursor-not-allowed disabled:opacity-50",
2626
"file:border-0 file:bg-transparent file:text-sm file:font-medium",
27+
"aria-disabled:cursor-not-allowed aria-disabled:opacity-50 aria-disabled:pointer-events-none",
2728
"focus-visible:outline-none focus-visible:ring-ring/50 focus-visible:ring-2 focus-visible:border-ring focus-visible:shadow-sm",
28-
"aria-disabled:cursor-not-allowed aria-disabled:opacity-50 aria-disabled:pointer-events-none"
29+
(@type.to_s == "file") ? "pt-[7px]" : ""
2930
]
3031
}
3132
end

0 commit comments

Comments
 (0)