Skip to content

Commit 77b6483

Browse files
committed
Update formatting for dropdown icons
1 parent 521fd45 commit 77b6483

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/petal_components/dropdown.ex

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ defmodule PetalComponents.Dropdown do
3434
@doc """
3535
<.dropdown label="Dropdown" js_lib="alpine_js|live_view_js">
3636
<.dropdown_menu_item link_type="button">
37-
<Heroicons.home class="w-5 h-5 text-gray-500" />
37+
<.icon name="hero-home" class="w-5 h-5 text-gray-500" />
3838
Button item with icon
3939
</.dropdown_menu_item>
4040
<.dropdown_menu_item link_type="a" to="/" label="a item" />
@@ -65,15 +65,15 @@ defmodule PetalComponents.Dropdown do
6565
6666
<%= if @label do %>
6767
<%= @label %>
68-
<.icon name="hero-chevron-down-solid" class="pc-dropdown__chevron" />
68+
<.icon name="hero-chevron-down-solid" class="h-5 w-5 pc-dropdown__chevron" />
6969
<% end %>
7070
7171
<%= if @trigger_element do %>
7272
<%= render_slot(@trigger_element) %>
7373
<% end %>
7474
7575
<%= if !@label && @trigger_element == [] do %>
76-
<.icon name="hero-ellipsis-vertical-solid" class="pc-dropdown__ellipsis" />
76+
<.icon name="hero-ellipsis-vertical-solid" class="h-5 w-5pc-dropdown__ellipsis" />
7777
<% end %>
7878
</button>
7979
</div>

0 commit comments

Comments
 (0)