File tree 2 files changed +10
-2
lines changed
installer/templates/phx_web/components
priv/templates/phx.gen.live
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,11 @@ defmodule <%= @web_namespace %>.CoreComponents do
267
267
< select
268
268
id = { @ id }
269
269
name = { @ name }
270
- class = "mt-2 block w-full rounded-md border border-zinc-300 bg-white shadow-sm focus:border-zinc-400 focus:ring-0 sm:text-sm "
270
+ class = { [
271
+ "mt-2 block w-full rounded-lg text-zinc-900 focus:ring-0 sm:text-sm sm:leading-6" ,
272
+ @ errors == [ ] && "border-zinc-300 focus:border-zinc-400" ,
273
+ @ errors != [ ] && "border-rose-400 focus:border-rose-400"
274
+ ] }
271
275
multiple = { @ multiple }
272
276
{ @ rest }
273
277
>
Original file line number Diff line number Diff line change @@ -267,7 +267,11 @@ defmodule <%= @web_namespace %>.CoreComponents do
267
267
< select
268
268
id = { @ id }
269
269
name = { @ name }
270
- class = "mt-2 block w-full rounded-md border border-zinc-300 bg-white shadow-sm focus:border-zinc-400 focus:ring-0 sm:text-sm "
270
+ class = { [
271
+ "mt-2 block w-full rounded-lg text-zinc-900 focus:ring-0 sm:text-sm sm:leading-6" ,
272
+ @ errors == [ ] && "border-zinc-300 focus:border-zinc-400" ,
273
+ @ errors != [ ] && "border-rose-400 focus:border-rose-400"
274
+ ] }
271
275
multiple = { @ multiple }
272
276
{ @ rest }
273
277
>
You can’t perform that action at this time.
0 commit comments