Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tooltip targeting for settings and logout buttons #121

Merged
merged 1 commit into from
Jul 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion lib/vachan_web/live/common/sidebar_menu.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
defmodule VachanWeb.SidebarMenuLiveComponent do
use VachanWeb, :live_component

alias VachanWeb.CoreComponents, as: Components

Check warning on line 23 in lib/vachan_web/live/common/sidebar_menu.ex

View workflow job for this annotation

GitHub Actions / test

unused alias Components

slot :inner_block, required: true
attr :path, :string
Expand Down Expand Up @@ -139,11 +139,19 @@
</div>
<a
href="/sign-out"
data-tooltip-target="tooltip-settings"
data-tooltip-target="tooltip-logout"
class="inline-flex justify-center p-2 text-gray-500 rounded cursor-pointer dark:text-gray-400 dark:hover:text-white hover:text-gray-900 hover:bg-customBackground_header dark:hover:bg-gray-600"
>
Logout
</a>
<div
id="tooltip-logout"
role="tooltip"
class="inline-block absolute invisible z-10 py-2 px-3 text-sm font-medium text-white bg-gray-900 rounded-lg shadow-sm opacity-0 transition-opacity duration-300 tooltip"
>
Logout
<div class="tooltip-arrow" data-popper-arrow></div>
</div>
</div>
</div>
"""
Expand Down
Loading