Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
fix: Uncaught TypeError in sub_menu.js (#652)
Browse files Browse the repository at this point in the history
* refactor: use an arrow svg to match the other submenus with an icon data-attribute

* fix: data-attribute icon set to arrow in chevron-down heroicons
  • Loading branch information
thiagofportella authored Dec 13, 2023
1 parent f1a8ca4 commit 85b2e89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/application/_sidebar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
>
<%= heroicon 'gift', variant: :outline, options: { class: 'h-6 w-6' } %>
<span class="ml-4"><%= t('contributions.title') %></span>
<%= heroicon 'chevron-down', options: { class: 'ml-auto h-6 w-6 transition-transform', data: { icon: 'arrow' } }%>
<%= heroicon 'chevron-down', options: { class: 'ml-auto h-6 w-6 transition-transform', 'data-icon' => 'arrow' }%>
</button>
<ul class="pl-10 py-1 mt-1 bg-gray-200 dark:bg-gray-900 rounded-lg hidden">
<li class="my-2">
Expand All @@ -102,7 +102,7 @@
>
<%= heroicon 'user', variant: :outline, options: { class: 'h-6 w-6' } %>
<span class="ml-4"><%= t('users.title') %></span>
<%= heroicon 'chevron-down', options: { class: 'ml-auto h-6 w-6 transition-transform', data: { icon: 'arrow' } }%>
<%= heroicon 'chevron-down', options: { class: 'ml-auto h-6 w-6 transition-transform', 'data-icon' => 'arrow' }%>
</button>
<ul class="pl-10 py-1 mt-1 bg-gray-200 dark:bg-gray-900 rounded-lg hidden">
<li class="my-2">
Expand Down

0 comments on commit 85b2e89

Please sign in to comment.