1
0
Fork 0
mirror of synced 2024-07-13 02:05:54 +12:00

Update form step control to render tooltips above rather than below buttons

This commit is contained in:
Andrew Kingston 2024-05-02 11:37:58 +01:00
parent a8b74f5f8c
commit b374e6bdc9

View file

@ -1,6 +1,6 @@
<script>
import { createEventDispatcher, getContext } from "svelte"
import { ActionButton } from "@budibase/bbui"
import { ActionButton, AbsTooltip } from "@budibase/bbui"
const multiStepStore = getContext("multi-step-form-block")
const dispatch = createEventDispatcher()
@ -28,6 +28,7 @@
</div>
{:else}
<div class="step-actions">
<AbsTooltip text="Previous step" noWrap>
<ActionButton
size="S"
secondary
@ -36,8 +37,9 @@
on:click={() => {
stepAction("previousStep")
}}
tooltip={"Previous step"}
/>
</AbsTooltip>
<AbsTooltip text="Next step" noWrap>
<ActionButton
size="S"
secondary
@ -46,8 +48,9 @@
on:click={() => {
stepAction("nextStep")
}}
tooltip={"Next step"}
/>
</AbsTooltip>
<AbsTooltip text="Remove step" noWrap>
<ActionButton
size="S"
secondary
@ -56,8 +59,9 @@
on:click={() => {
stepAction("removeStep")
}}
tooltip={"Remove step"}
/>
</AbsTooltip>
<AbsTooltip text="Add step" noWrap>
<ActionButton
size="S"
secondary
@ -65,8 +69,8 @@
on:click={() => {
stepAction("addStep")
}}
tooltip={"Add step"}
/>
</AbsTooltip>
</div>
{/if}