Skip to content
Open
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
2 changes: 1 addition & 1 deletion lib/ruby_ui/form/form_field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def default_attrs
data: {
controller: "ruby-ui--form-field"
},
class: "space-y-2"
class: "flex flex-col gap-2"
}
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_ui/form/form_field_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def default_attrs
data: {
ruby_ui__form_field_target: "error"
},
class: "text-sm font-medium text-destructive"
class: "empty:hidden text-sm font-medium text-destructive"
}
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_ui/form/form_field_hint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def view_template(&)
private

def default_attrs
{class: "text-sm text-muted-foreground"}
{class: "empty:hidden text-sm text-muted-foreground"}
end
end
end
2 changes: 1 addition & 1 deletion lib/ruby_ui/form/form_field_label.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def view_template(&)
def default_attrs
{
class: [
"text-sm font-medium leading-none",
"empty:hidden text-sm font-medium leading-none",
"peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
"peer-aria-disabled:cursor-not-allowed peer-aria-disabled:opacity-70 peer-aria-disabled:pointer-events-none"
]
Expand Down
Loading