Skip to content

Commit

Permalink
feat: add tooltip to button Next
Browse files Browse the repository at this point in the history
  • Loading branch information
fterra-encora committed Oct 9, 2023
1 parent 3c69a38 commit ae3a94d
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions frontend/src/pages/FormBCeIDPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { reactive, watch, toRef, ref, getCurrentInstance, computed } from "vue";
import "@carbon/web-components/es/components/button/index";
import "@carbon/web-components/es/components/progress-indicator/index";
import "@carbon/web-components/es/components/notification/index";
import "@carbon/web-components/es/components/tooltip/index";
// Composables
import { useEventBus, useMediaQuery } from "@vueuse/core";
import { useRouter } from "vue-router";
Expand Down Expand Up @@ -485,18 +486,23 @@ const isSmallScreen = useMediaQuery("(max-width: 671px)");
<span>Back</span>
</cds-button>

<cds-button
v-if="!isLast && !endAndLogOut && !mailAndLogOut"
id="nextBtn"
kind="primary"
size="lg"
v-on:click="onNext"
:disabled="progressData[currentTab].valid === false"
data-test="wizard-next-button"
>
<span>Next</span>
<ArrowRight16 slot="icon" />
</cds-button>
<cds-tooltip>
<cds-button
v-if="!isLast && !endAndLogOut && !mailAndLogOut"
id="nextBtn"
kind="primary"
size="lg"
v-on:click="onNext"
:disabled="progressData[currentTab].valid === false"
data-test="wizard-next-button"
>
<span>Next</span>
<ArrowRight16 slot="icon" />
</cds-button>
<cds-tooltip-content v-show="progressData[currentTab].valid === false">
All fields must be filled in correctly.
</cds-tooltip-content>
</cds-tooltip>

<cds-button
v-if="isLast && !endAndLogOut && !mailAndLogOut"
Expand Down

0 comments on commit ae3a94d

Please sign in to comment.