Skip to content

Commit

Permalink
Inline svg tags need .svg file name for production
Browse files Browse the repository at this point in the history
  • Loading branch information
rossta committed Dec 26, 2023
1 parent 4fe5d8a commit f3bea1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/darkmode/_switch.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
aria-label="Change Color Scheme"
role="button"
>
<%= inline_svg_tag "darkmode/moon", data: { "darkmode-target" => "darkIcon" }, class: "hidden w-5 h-5", fill: "currentColor" %>
<%= inline_svg_tag "darkmode/sun", data: { "darkmode-target" => "lightIcon" }, class: "hidden w-5 h-5", fill: "currentColor" %>
<%= inline_svg_tag "darkmode/eclipse", data: { "darkmode-target" => "systemIcon" }, class: "hidden w-5 h-5", fill: "currentColor" %>
<%= inline_svg_tag "darkmode/moon.svg", data: { "darkmode-target" => "darkIcon" }, class: "hidden w-5 h-5", fill: "currentColor" %>
<%= inline_svg_tag "darkmode/sun.svg", data: { "darkmode-target" => "lightIcon" }, class: "hidden w-5 h-5", fill: "currentColor" %>
<%= inline_svg_tag "darkmode/eclipse.svg", data: { "darkmode-target" => "systemIcon" }, class: "hidden w-5 h-5", fill: "currentColor" %>
</button>
</div>

0 comments on commit f3bea1f

Please sign in to comment.