From 17caffc6162fcb2fb8142c9cb025346bb434fc89 Mon Sep 17 00:00:00 2001 From: KKlochko Date: Tue, 1 Apr 2025 17:47:54 +0300 Subject: [PATCH] Add the red border for an input if there's an error and the dark theme. --- .../components/core_components.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/decentralised_book_index_web/components/core_components.ex b/lib/decentralised_book_index_web/components/core_components.ex index 16f65fb..7af1941 100644 --- a/lib/decentralised_book_index_web/components/core_components.ex +++ b/lib/decentralised_book_index_web/components/core_components.ex @@ -420,7 +420,7 @@ defmodule DecentralisedBookIndexWeb.CoreComponents do class={[ "mt-2 block w-full rounded-lg text-zinc-900 focus:ring-0 sm:text-sm sm:leading-6 min-h-[6rem] dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500", @errors == [] && "border-zinc-300 focus:border-zinc-400", - @errors != [] && "border-rose-400 focus:border-rose-400" + @errors != [] && "border-rose-400 focus:border-rose-400 dark:border-rose-400 dark:focus:border-rose-400" ]} {@rest} >{Phoenix.HTML.Form.normalize_value("textarea", @value)} @@ -442,7 +442,7 @@ defmodule DecentralisedBookIndexWeb.CoreComponents do class={[ "mt-2 block w-full rounded-lg text-zinc-900 focus:ring-0 sm:text-sm sm:leading-6 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500", @errors == [] && "border-zinc-300 focus:border-zinc-400", - @errors != [] && "border-rose-400 focus:border-rose-400" + @errors != [] && "border-rose-400 focus:border-rose-400 dark:border-rose-400 dark:focus:border-rose-400" ]} {@rest} />