Skip to content

Commit 7762d34

Browse files
georgekettleGeorge Kettle
andauthored
Error to xs sizing and label to inline-block to maintain spacing of FormField wrapper (#318)
Co-authored-by: George Kettle <[email protected]>
1 parent 95bc036 commit 7762d34

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/ruby_ui/form/form_field_error.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def default_attrs
1313
data: {
1414
ruby_ui__form_field_target: "error"
1515
},
16-
class: "text-sm font-medium text-destructive"
16+
class: "text-xs font-medium text-destructive"
1717
}
1818
end
1919
end

lib/ruby_ui/form/form_field_label.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def view_template(&)
1111
def default_attrs
1212
{
1313
class: [
14-
"text-sm font-medium leading-none",
14+
"text-sm font-medium leading-none inline-block",
1515
"peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
1616
"peer-aria-disabled:cursor-not-allowed peer-aria-disabled:opacity-70 peer-aria-disabled:pointer-events-none"
1717
]

0 commit comments

Comments
 (0)