1
0
Fork 0

Fix: dark mode in headers

This commit is contained in:
Aroy-Art 2024-09-06 23:24:14 +02:00
parent 8b8465e72a
commit 883342842c
Signed by: Aroy
GPG key ID: DB9689E9391DD156

View file

@ -431,10 +431,10 @@ defmodule NotesAppWeb.CoreComponents do
~H""" ~H"""
<header class={[@actions != [] && "flex items-center justify-between gap-6", @class]}> <header class={[@actions != [] && "flex items-center justify-between gap-6", @class]}>
<div> <div>
<h1 class="text-lg font-semibold leading-8 text-zinc-800"> <h1 class="text-lg font-semibold leading-8 text-zinc-800 dark:text-zinc-100">
<%= render_slot(@inner_block) %> <%= render_slot(@inner_block) %>
</h1> </h1>
<p :if={@subtitle != []} class="mt-2 text-sm leading-6 text-zinc-600"> <p :if={@subtitle != []} class="mt-2 text-sm leading-6 text-zinc-600 dark:text-zinc-400">
<%= render_slot(@subtitle) %> <%= render_slot(@subtitle) %>
</p> </p>
</div> </div>