fix buttons

This commit is contained in:
Keviin Åberg Kultalahti 2021-04-09 15:24:28 +02:00
parent 1b3e93c6c5
commit 439fda6785
16 changed files with 18 additions and 18 deletions

View File

@ -46,11 +46,11 @@
<div class="spectrum-ButtonGroup-item"> <div class="spectrum-ButtonGroup-item">
<slot name="footer" /> <slot name="footer" />
{#if showCancelButton} {#if showCancelButton}
<Button type="secondary" on:click={hide}>{cancelText}</Button> <Button secondary on:click={hide}>{cancelText}</Button>
{/if} {/if}
{#if showConfirmButton} {#if showConfirmButton}
<Button <Button
type="cta" cta
primary primary
{...$$restProps} {...$$restProps}
disabled={confirmDisabled} disabled={confirmDisabled}

View File

@ -92,7 +92,7 @@
</div> </div>
{/each} {/each}
{#if stepId === 'WEBHOOK'} {#if stepId === 'WEBHOOK'}
<Button type="secondary" on:click={() => webhookModal.show()}> <Button secondary on:click={() => webhookModal.show()}>
Set Up Webhook Set Up Webhook
</Button> </Button>
{/if} {/if}

View File

@ -65,7 +65,7 @@
{webhookModal} /> {webhookModal} />
{:else if $automationStore.selectedAutomation} {:else if $automationStore.selectedAutomation}
<div class="block-label">{automation.name}</div> <div class="block-label">{automation.name}</div>
<Button type="secondary" on:click={testAutomation}>Test Automation</Button> <Button secondary on:click={testAutomation}>Test Automation</Button>
{/if} {/if}
<Button <Button
secondary secondary

View File

@ -9,7 +9,7 @@
</script> </script>
<div bind:this={anchor}> <div bind:this={anchor}>
<Button icon="Calculator" type="overBackground" size="S" quiet <Button icon="Calculator" primary size="S" quiet
on:click={dropdown.show} on:click={dropdown.show}
active={view.field && view.calculation}> active={view.field && view.calculation}>
Calculate Calculate

View File

@ -10,7 +10,7 @@
let modal let modal
</script> </script>
<Button icon="AddCircle" type="overBackground" size="S" quiet on:click={modal.show}> <Button icon="AddCircle" primary size="S" quiet on:click={modal.show}>
Create New Column Create New Column
</Button> </Button>
<Modal bind:this={modal}> <Modal bind:this={modal}>

View File

@ -8,7 +8,7 @@
let modal let modal
</script> </script>
<Button icon="Add" type="overBackground" size="S" quiet on:click={modal.show}> <Button icon="Add" primary size="S" quiet on:click={modal.show}>
{title} {title}
</Button> </Button>
<Modal bind:this={modal}> <Modal bind:this={modal}>

View File

@ -7,7 +7,7 @@
</script> </script>
<div bind:this={anchor}> <div bind:this={anchor}>
<Button icon="CollectionAdd" type="overBackground" size="S" quiet on:click={dropdown.show}> <Button icon="CollectionAdd" primary size="S" quiet on:click={dropdown.show}>
Create New View Create New View
</Button> </Button>
</div> </div>

View File

@ -13,7 +13,7 @@
} }
</script> </script>
<Button icon="Delete" size="s" type="overBackground" quiet on:click={modal.show}> <Button icon="Delete" size="s" primary quiet on:click={modal.show}>
Delete Delete
{selectedRows.length} {selectedRows.length}
row(s) row(s)

View File

@ -6,7 +6,7 @@
</script> </script>
<div> <div>
<Button icon="UsersLock" type="overBackground" size="S" quiet on:click={modal.show}> <Button icon="UsersLock" primary size="S" quiet on:click={modal.show}>
Edit Roles Edit Roles
</Button> </Button>
</div> </div>

View File

@ -9,7 +9,7 @@
</script> </script>
<div bind:this={anchor}> <div bind:this={anchor}>
<Button icon="Download" type="overBackground" size="S" quiet on:click={dropdown.show}> <Button icon="Download" primary size="S" quiet on:click={dropdown.show}>
Export Export
</Button> </Button>
</div> </div>

View File

@ -9,7 +9,7 @@
</script> </script>
<div bind:this={anchor}> <div bind:this={anchor}>
<Button icon="Filter" type="overBackground" size="S" quiet <Button icon="Filter" primary size="S" quiet
on:click={dropdown.show} on:click={dropdown.show}
active={view.filters && view.filters.length}> active={view.filters && view.filters.length}>
Filter Filter

View File

@ -9,7 +9,7 @@
</script> </script>
<div bind:this={anchor}> <div bind:this={anchor}>
<Button icon="Group" type="overBackground" size="S" quiet active={!!view.groupBy} on:click={dropdown.show}> <Button icon="Group" primary size="S" quiet active={!!view.groupBy} on:click={dropdown.show}>
Group By Group By
</Button> </Button>
</div> </div>

View File

@ -12,7 +12,7 @@
</script> </script>
<div bind:this={anchor}> <div bind:this={anchor}>
<Button icon="MagicWand" type="overBackground" size="S" quiet on:click={hideOrUnhide}> <Button icon="MagicWand" primary size="S" quiet on:click={hideOrUnhide}>
{#if hideAutocolumns} {#if hideAutocolumns}
Show Auto Columns Show Auto Columns
{:else} {:else}

View File

@ -16,7 +16,7 @@
</script> </script>
<div bind:this={anchor}> <div bind:this={anchor}>
<Button icon="LockClosed" type="overBackground" size="S" quiet on:click={openDropdown}> <Button icon="LockClosed" primary size="S" quiet on:click={openDropdown}>
Manage Access Manage Access
</Button> </Button>
</div> </div>

View File

@ -288,10 +288,10 @@
{/if} {/if}
<footer class="create-column-options"> <footer class="create-column-options">
{#if !uneditable && originalName != null} {#if !uneditable && originalName != null}
<Button type="warning" size="S" text on:click={confirmDelete}>Delete Column</Button> <Button warning size="S" text on:click={confirmDelete}>Delete Column</Button>
{/if} {/if}
<Button on:click={onClosed}>Cancel</Button> <Button on:click={onClosed}>Cancel</Button>
<Button type="cta" on:click={saveColumn} bind:disabled={invalid}> <Button cta on:click={saveColumn} bind:disabled={invalid}>
Save Column Save Column
</Button> </Button>
</footer> </footer>

View File

@ -81,7 +81,7 @@
{/each} {/each}
<div> <div>
<Spacer small /> <Spacer small />
<Button icon="AddCircle" size="S" type="cta" on:click={addField}> <Button icon="AddCircle" size="S" cta on:click={addField}>
Add Add
{fieldLabel} {fieldLabel}
</Button> </Button>