Skip to content

Commit d56a52f

Browse files
committed
fix tailwind overrides
1 parent 570c411 commit d56a52f

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

lib/algora_web/components/core_components.ex

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -820,13 +820,16 @@ defmodule AlgoraWeb.CoreComponents do
820820
<textarea
821821
id={@id || @name}
822822
name={@name}
823-
class={[
824-
"min-h-[6rem] py-[7px] px-[11px] block w-full rounded-lg border-input bg-background",
825-
"text-foreground focus:border-ring focus:outline-none focus:ring-4 focus:ring-ring/5 sm:text-sm sm:leading-6",
826-
"border-input focus:border-ring focus:ring-ring/5",
827-
@errors != [] && "border-destructive focus:border-destructive focus:ring-destructive/10",
828-
@class
829-
]}
823+
class={
824+
classes([
825+
"min-h-[6rem] py-[7px] px-[11px] block w-full rounded-lg border-input bg-background",
826+
"text-foreground focus:border-ring focus:outline-none focus:ring-4 focus:ring-ring/5 sm:text-sm sm:leading-6",
827+
"border-input focus:border-ring focus:ring-ring/5",
828+
@errors != [] &&
829+
"border-destructive placeholder-destructive-foreground/50 focus:border-destructive focus:ring-destructive/10",
830+
@class
831+
])
832+
}
830833
{@rest}
831834
><%= Phoenix.HTML.Form.normalize_value("textarea", @value) %></textarea>
832835
<.error :for={msg <- @errors}>{msg}</.error>

0 commit comments

Comments
 (0)