Skip to content

Conversation

@djalmaaraujo
Copy link
Contributor

Summary

Updates the form component with improved styling and layout.

Changes

  • FormField: Change from space-y-2 to flex flex-col gap-2 for more consistent spacing
  • FormFieldError: Add empty:hidden class, change text-xs to text-sm for better readability
  • FormFieldHint: Add empty:hidden class to hide when empty
  • FormFieldLabel: Add empty:hidden class to hide when empty

Files Changed

  • lib/ruby_ui/form/form_field.rb
  • lib/ruby_ui/form/form_field_error.rb
  • lib/ruby_ui/form/form_field_hint.rb
  • lib/ruby_ui/form/form_field_label.rb

- FormField: Change from space-y-2 to flex flex-col gap-2
- FormFieldError: Add empty:hidden, change text-xs to text-sm
- FormFieldHint: Add empty:hidden
- FormFieldLabel: Add empty:hidden
@djalmaaraujo djalmaaraujo requested a review from cirdes as a code owner December 10, 2025 16:34
Copy link
Collaborator

@cirdes cirdes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome!

@cirdes cirdes merged commit e974f7a into main Dec 11, 2025
2 checks passed
@cirdes cirdes deleted the form-update-styling branch December 11, 2025 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants