Use Tailwind dark: toggles for dark-mode icons
The previous <picture media="(prefers-color-scheme: dark)"> only fires when the OS is in dark mode. Clinch toggles dark mode with a class on <html> via dark_mode_controller and Tailwind's @custom-variant dark (&:where(.dark, .dark *)), so the picture source never swapped when users clicked the in-app theme toggle. Render both <img> tags and use Tailwind's dark:hidden / hidden dark:block so the swap follows whatever strategy Tailwind is configured for. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Clinch
|
||||
VERSION = "0.14.1"
|
||||
VERSION = "0.14.2"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user