Skip to content

Commit

Permalink
Revert "add wrapper around icon svg"
Browse files Browse the repository at this point in the history
This reverts commit 84dd339.
  • Loading branch information
woylie committed Dec 5, 2023
1 parent 84dd339 commit 4562f8d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/doggo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ defmodule Doggo do
aria-label={if @label && @label_placement == :hidden, do: @label}
{@rest}
>
<span class="icon-svg"><%= render_slot(@inner_block) %></span>
<%= render_slot(@inner_block) %>
<span :if={@label && @label_placement != :hidden}><%= @label %></span>
</span>
"""
Expand Down Expand Up @@ -582,9 +582,7 @@ defmodule Doggo do
aria-label={if @label && @label_placement == :hidden, do: @label}
{@rest}
>
<span class="icon-svg">
<svg aria-hidden="true"><use href={"#{@sprite_url}##{@name}"} /></svg>
</span>
<svg aria-hidden="true"><use href={"#{@sprite_url}##{@name}"} /></svg>
<span :if={@label && @label_placement != :hidden}><%= @label %></span>
</span>
"""
Expand Down

0 comments on commit 4562f8d

Please sign in to comment.