Skip to content

Commit e85e536

Browse files
committed
2 parents 8e7f5b6 + c06c45f commit e85e536

19 files changed

+25
-16
lines changed

priv/components/banner.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ defmodule <%= @module %> do
371371
defp border_class("large", "top", _), do: "border-b-4"
372372
defp border_class("extra_large", "top", _), do: "border-b-[5px]"
373373

374-
defp border_class("extra_small", "bottom", _), do: "border"
374+
defp border_class("extra_small", "bottom", _), do: "border-b"
375375
defp border_class("small", "bottom", _), do: "border-b-2"
376376
defp border_class("medium", "bottom", _), do: "border-b-[3px]"
377377
defp border_class("large", "bottom", _), do: "border-b-4"

priv/components/blockquote.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ defmodule <%= @module %> do
249249
defp border_class("small", position, _) do
250250
[
251251
position == "left" && "border-s-2",
252-
position == "right" && "border-s-2",
252+
position == "right" && "border-e-2",
253253
position == "full" && "border-2"
254254
]
255255
end

priv/components/date_time_field.eex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ defmodule <%= @module %> do
204204
/>
205205

206206
<label
207+
:if={@label}
207208
class={[
208209
"floating-label px-1 start-1 -z-[1] absolute text-xs duration-300 transform scale-75 origin-[0]",
209210
variant_label_position(@floating),

priv/components/email_field.eex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ defmodule <%= @module %> do
177177
/>
178178

179179
<label
180+
:if={@label}
180181
class={[
181182
"floating-label px-1 start-1 -z-[1] absolute text-xs duration-300 transform scale-75 origin-[0]",
182183
variant_label_position(@floating),

priv/components/file_field.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ defmodule <%= @module %> do
285285
space_class(@space),
286286
@class
287287
]}>
288-
<.label for={@id}>{@label}</.label>
288+
<.label :if={@label} for={@id}>{@label}</.label>
289289

290290
<%%= if @live do %>
291291
<.live_file_input

priv/components/footer.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ defmodule <%= @module %> do
166166
<% end %>
167167
defp space_class(params) when is_binary(params), do: params
168168

169-
defp maximum_width("extra_small"), do: "[&>div]:max-w-3xl [&>div]:mx-auto"
169+
defp maximum_width("extra_small"), do: "[&>div]:max-w-3xl [&>div]:mx-auto"
170170
defp maximum_width("small"), do: "[&>div]:max-w-4xl [&>div]:mx-auto"
171171
defp maximum_width("medium"), do: "[&>div]:max-w-5xl [&>div]:mx-auto"
172172
defp maximum_width("large"), do: "[&>div]:max-w-6xl [&>div]:mx-auto"

priv/components/gallery.eex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ defmodule <%= @module %> do
5656
attr :type, :string, values: ["default", "masonry", "featured"], default: "default", doc: ""
5757
attr :class, :any, default: nil, doc: "Custom CSS class for additional styling"
5858
attr :cols, :string, default: "", doc: "Determines cols of elements"
59-
attr :gap, :string, default: "", doc: "Determines animation type for gallery items"
60-
attr :animation, :string, default: "", doc: "Determines animation intensity/size"
61-
attr :animation_size, :string, default: "extra_small", doc: "Determines gap between elements"
59+
attr :gap, :string, default: "", doc: "Determines gap between elements"
60+
attr :animation, :string, default: "", doc: "Determines animation type for gallery items"
61+
attr :animation_size, :string, default: "extra_small", doc: "Determines animation intensity/size"
6262

6363
attr :rest, :global,
6464
doc:

priv/components/input_field.eex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ defmodule <%= @module %> do
120120
def <%= @component_prefix %>input(%{type: "select"} = assigns) do
121121
~H"""
122122
<div>
123-
<.label for={@id}>{@label}</.label>
123+
<.label :if={@label} for={@id}>{@label}</.label>
124124

125125
<select
126126
id={@id}
@@ -141,7 +141,7 @@ defmodule <%= @module %> do
141141
def <%= @component_prefix %>input(%{type: "textarea"} = assigns) do
142142
~H"""
143143
<div>
144-
<.label for={@id}>{@label}</.label>
144+
<.label :if={@label} for={@id}>{@label}</.label>
145145
<textarea
146146
id={@id}
147147
name={@name}
@@ -161,7 +161,7 @@ defmodule <%= @module %> do
161161
def <%= @component_prefix %>input(assigns) do
162162
~H"""
163163
<div>
164-
<.label for={@id}>{@label}</.label>
164+
<.label :if={@label} for={@id}>{@label}</.label>
165165

166166
<input
167167
type={@type}

priv/components/number_field.eex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ defmodule <%= @module %> do
173173
/>
174174

175175
<label
176+
:if={@label}
176177
class={[
177178
"floating-label px-1 start-1 -z-[1] absolute text-xs duration-300 transform scale-75 origin-[0]",
178179
variant_label_position(@floating),

priv/components/overlay.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ defmodule <%= @module %> do
9494
<% end %>
9595
<%= if is_nil(@color) or "natural" in @color do %>
9696
defp color_class("natural") do
97-
["bg-natural-light[var(--overlay-opacity)]dark:bg-natural-dark/[var(--overlay-opacity)]"]
97+
["bg-natural-light/[var(--overlay-opacity)] dark:bg-natural-dark/[var(--overlay-opacity)]"]
9898
end
9999
<% end %>
100100
<%= if is_nil(@color) or "primary" in @color do %>

0 commit comments

Comments
 (0)