Skip to content

Commit

Permalink
Dark mode fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aerosol committed Aug 16, 2024
1 parent e557d33 commit 84f9577
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions lib/plausible_web/components/generic.ex
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ defmodule PlausibleWeb.Components.Generic do
def focus_box(assigns) do
~H"""
<div class={[
"bg-white w-full max-w-lg mx-auto dark:bg-gray-800",
"bg-white w-full max-w-lg mx-auto dark:bg-gray-800 text-black dark:text-gray-100",
@outer_markup && "shadow-md rounded mb-4 mt-8"
]}>
<div class={[@outer_markup && "p-8"]}>
Expand All @@ -399,7 +399,10 @@ defmodule PlausibleWeb.Components.Generic do
<%= render_slot(@inner_block) %>
</div>
</div>
<div :if={@footer != []} class="flex flex-col dark:text-gray-200 border-t border-gray-300 ">
<div
:if={@footer != []}
class="flex flex-col dark:text-gray-200 border-t border-gray-300 dark:border-gray-700"
>
<div class={[@outer_markup && "p-8"]}>
<%= render_slot(@footer) %>
</div>
Expand Down
2 changes: 1 addition & 1 deletion lib/plausible_web/templates/site/snippet.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<%= textarea(f, :domain,
id: "snippet_code",
class:
"transition overflow-hidden bg-gray-100 dark:bg-gray-900 appearance-none border border-transparent rounded w-full p-2 pr-6 text-gray-700 dark:text-gray-300 leading-normal appearance-none focus:outline-none focus:bg-white dark:focus:bg-gray-800 focus:border-gray-400 dark:focus:border-gray-500 font-mono mt-4 resize-none",
"transition overflow-hidden bg-gray-100 dark:bg-gray-900 appearance-none border border-transparent rounded w-full p-2 pr-6 text-gray-700 dark:text-gray-300 leading-normal appearance-none focus:outline-none focus:bg-white dark:focus:bg-gray-800 focus:border-gray-400 dark:focus:border-gray-500 font-mono mt-4 resize-none text-xs",
value: render_snippet(@site),
rows: 3,
readonly: "readonly"
Expand Down

0 comments on commit 84f9577

Please sign in to comment.