Skip to content

Commit

Permalink
Improve design of UMA tooltips (#46)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Gaines <[email protected]>
  • Loading branch information
abg4 authored Jan 19, 2023
1 parent 192d0d6 commit 51c2f6a
Showing 1 changed file with 44 additions and 16 deletions.
60 changes: 44 additions & 16 deletions src/plugins/safeSnap/components/HandleOutcomeUma.vue
Original file line number Diff line number Diff line change
Expand Up @@ -364,13 +364,20 @@ onMounted(async () => {
<BaseButton
:loading="actionInProgress === 'confirm-vote-results'"
@click="confirmVoteResults"
class="mr-2"
>
{{ $t('safeSnap.labels.confirmVoteResults') }}
</BaseButton>
<IconInformationTooltip
:information="$t('safeSnap.labels.confirmVoteResultsToolTip')"
class="ml-2"
/>
<BasePopoverHover placement="top">
<template #button>
<i-ho-information-circle />
</template>
<template #content>
<div class="border bg-skin-bg p-3 text-md shadow-lg md:rounded-lg">
{{ $t('safeSnap.labels.confirmVoteResultsToolTip') }}
</div>
</template>
</BasePopoverHover>
</BaseContainer>
</div>
Expand All @@ -389,13 +396,20 @@ onMounted(async () => {
<BaseButton
:loading="actionInProgress === 'approve-bond'"
@click="approveBond"
class="mr-2"
>
{{ $t('safeSnap.labels.approveBond') }}
</BaseButton>
<IconInformationTooltip
:information="$t('safeSnap.labels.approveBondToolTip')"
class="ml-2"
/>
<BasePopoverHover placement="top">
<template #button>
<i-ho-information-circle />
</template>
<template #content>
<div class="border bg-skin-bg p-3 text-md shadow-lg md:rounded-lg">
{{ $t('safeSnap.labels.approveBondToolTip') }}
</div>
</template>
</BasePopoverHover>
</BaseContainer>
</div>
<div
Expand All @@ -409,13 +423,20 @@ onMounted(async () => {
<BaseButton
:loading="actionInProgress === 'submit-proposal'"
@click="submitProposal"
class="mr-2"
>
{{ $t('safeSnap.labels.request') }}
</BaseButton>
<IconInformationTooltip
:information="$t('safeSnap.labels.requestToolTip')"
class="ml-2"
/>
<BasePopoverHover placement="top">
<template #button>
<i-ho-information-circle />
</template>
<template #content>
<div class="border bg-skin-bg p-3 text-md shadow-lg md:rounded-lg">
{{ $t('safeSnap.labels.requestToolTip') }}
</div>
</template>
</BasePopoverHover>
</BaseContainer>
</div>
Expand Down Expand Up @@ -460,6 +481,7 @@ onMounted(async () => {
<BaseButton
:loading="action2InProgress === 'execute-proposal'"
@click="executeProposal"
class="mr-2"
>
{{
$t('safeSnap.labels.executeTxsUma', [
Expand All @@ -468,10 +490,16 @@ onMounted(async () => {
])
}}
</BaseButton>
<IconInformationTooltip
:information="$t('safeSnap.labels.executeToolTip')"
class="ml-2"
/>
<BasePopoverHover placement="top">
<template #button>
<i-ho-information-circle />
</template>
<template #content>
<div class="border bg-skin-bg p-3 text-md shadow-lg md:rounded-lg">
{{ $t('safeSnap.labels.executeToolTip') }}
</div>
</template>
</BasePopoverHover>
</BaseContainer>
</div>
</div>
Expand Down

2 comments on commit 51c2f6a

@vercel
Copy link

@vercel vercel bot commented on 51c2f6a Jan 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

snapshot – ./

snapshot-uma.vercel.app
snapshot-swart-two.vercel.app
snapshot-git-uma-uma.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 51c2f6a Jan 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

snapshot-goerli – ./

snapshot-goerli-git-uma-uma.vercel.app
snapshot-goerli.vercel.app
snapshot-goerli-uma.vercel.app

Please sign in to comment.