You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<div> <%= link_to path, data: local_assigns.fetch(:data, nil) do %> <div class="group relative inline-block"> <div class='mr-1 py-2 px-3 text-white border rounded-lg bg-white dark:bg-slate-900'> <%=fa_icon icon %> </div> <div class="bg-purple-800 text-white absolute top-full left-1/2 z-20 mt-2 -translate-x-1/2 whitespace-nowrap rounded-[5px] py-1.5 px-3.5 text-sm opacity-0 group-hover:opacity-100 pointer-events-none"> <span class="bg-purple-800 absolute top-[-3px] left-1/2 -z-10 h-2 w-2 -translate-x-1/2 rotate-45"> </span> <%= tooltip %> </div> </div> <% end %> </div>
|