Skip to content

Commit

Permalink
Improve the ui/forms/text_field style
Browse files Browse the repository at this point in the history
- 100% width by default
- Use tailwind/forms base styles
  • Loading branch information
elia committed Sep 12, 2023
1 parent 1fa64de commit 6579be8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def call
disabled: @attributes[:disabled]
)

tag.div(class: "mb-6") do
tag.div(class: "w-full mb-6") do
label_tag + field_tag(guidance) + guidance_tag(guidance)
end
end
Expand All @@ -81,6 +81,7 @@ def field_tag(guidance)

def field_classes(guidance)
%w[
form-input
block px-3 py-1.5 w-full
text-black
bg-white border border-gray-300 rounded-sm
Expand Down

0 comments on commit 6579be8

Please sign in to comment.