Skip to content

Commit

Permalink
Update styling of email field
Browse files Browse the repository at this point in the history
  • Loading branch information
joelzwarrington committed Oct 20, 2024
1 parent ddcaed3 commit 2666044
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/atomic_view/components/email_field_component.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
module AtomicView
module Components
class EmailFieldComponent < ViewComponent::Form::EmailFieldComponent
def call
render TextFieldComponent.new(
@form,
@object_name,
@object_method,
@options.merge(
type: "email",
left_section: icon("at-symbol", variant: :mini, options: {class: "size-5 text-gray-500"})
)
)
end
end
end
end

0 comments on commit 2666044

Please sign in to comment.