File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
lib/algora_web/components Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments