feat(member-live): unify the overview settings menu and add a reset-button tooltip
This commit is contained in:
parent
561463725a
commit
ca2aaa069c
5 changed files with 33 additions and 18 deletions
|
|
@ -589,17 +589,29 @@ defmodule MvWeb.CoreComponents do
|
|||
</button>
|
||||
<button
|
||||
:if={@show_reset_button}
|
||||
id={"#{@testid}-reset"}
|
||||
type="button"
|
||||
role="menuitem"
|
||||
aria-label={gettext("Reset to default")}
|
||||
title={gettext("Reset to default")}
|
||||
aria-describedby={"#{@testid}-reset-tooltip"}
|
||||
phx-click="reset_fields"
|
||||
phx-target={@phx_target}
|
||||
phx-hook="PopoverTooltip"
|
||||
data-tooltip-id={"#{@testid}-reset-tooltip"}
|
||||
class="btn btn-xs btn-ghost"
|
||||
data-testid="dropdown-reset"
|
||||
>
|
||||
<.icon name="hero-arrow-uturn-left" class="size-4" />
|
||||
</button>
|
||||
<div
|
||||
:if={@show_reset_button}
|
||||
id={"#{@testid}-reset-tooltip"}
|
||||
popover="manual"
|
||||
role="tooltip"
|
||||
class="popover-tooltip"
|
||||
>
|
||||
{gettext("Reset to default")}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue