Skip to content

Commit

Permalink
Replace link with text-button.
Browse files Browse the repository at this point in the history
Needs some work since it uses the old tooltip style.
  • Loading branch information
MelissaAutumn committed Jun 25, 2024
1 parent 8ac72ef commit d89fa7f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
12 changes: 11 additions & 1 deletion frontend/src/components/FTUE/Finish.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<img src="@/assets/svg/ftue-finish.svg" alt="A user icon in front of two calendars."/>
<div class="copy">
<p>Before you close this screen, copy your shareable schedule link to start receiving appointments.</p>
<a class="link" :href="myLink">{{ myLink }}</a>
<text-button class="link" :copy="myLink" :label="myLink"/>
</div>
</div>
<div class="absolute bottom-[5.75rem] flex w-full justify-end gap-4">
Expand All @@ -27,6 +27,9 @@ import { useFTUEStore } from '@/stores/ftue-store';
import { useScheduleStore } from '@/stores/schedule-store';
import PrimaryButton from '@/tbpro/elements/PrimaryButton.vue';
import { useUserStore } from '@/stores/user-store';
import { IconClipboardCheck, IconCopy } from '@tabler/icons-vue';
import SecondaryButton from '@/tbpro/elements/SecondaryButton.vue';
import TextButton from '@/elements/TextButton.vue';
const { t } = useI18n();
Expand All @@ -43,6 +46,8 @@ const { nextStep } = ftueStore;
const scheduleStore = useScheduleStore();
const copied = ref(false);
onMounted(async () => {
await scheduleStore.fetch(call);
myLink.value = userStore.myLink;
Expand Down Expand Up @@ -79,5 +84,10 @@ const onSubmit = async () => {
.link {
color: var(--tbpro-primary);
text-decoration: underline;
border: none;
&:hover {
background-color: initial !important;
box-shadow: none !important;
}
}
</style>
1 change: 0 additions & 1 deletion frontend/src/tbpro/elements/BaseButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<script setup>
import { tooltipPosition } from '@/definitions';
import ToolTip from '@/tbpro/elements/ToolTip.vue';
import { ref } from 'vue';
defineProps({
type: {
Expand Down
8 changes: 0 additions & 8 deletions frontend/src/tbpro/elements/ToolTip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ defineProps({
</script>

<style scoped>
/*
pointer-events-none absolute bottom-full z-50 -translate-y-2 whitespace-nowrap text-wrap rounded-lg bg-black/75 px-3
py-1.5 font-sans text-sm font-normal text-white focus:outline-none
*/
.tooltip {
position: absolute;
text-wrap: wrap;
Expand Down Expand Up @@ -59,9 +54,6 @@ defineProps({
}
/*
absolute left-1/2 top-full size-3 -translate-x-1/2 fill-black/75
*/
.beak {
position: absolute;
color: var(--surface-subtle);
Expand Down

0 comments on commit d89fa7f

Please sign in to comment.