fix: remove tertiary button

This commit is contained in:
Arman committed 2022-06-07 14:27:30 +02:00
1 parent 0fd6d51a45
commit 0e5331fa3b
2 files changed
-9

No files matched your search

-3
View File
@@ -1,7 +1,6 @@
<script lang="ts">
export let submit = false;
export let secondary = false;
export let tertiary = false;
export let text = false;
export let danger = false;
export let disabled = false;
@@ -20,7 +19,6 @@
class="button"
class:is-only-icon={round}
class:is-secondary={secondary}
class:is-tertiary={tertiary}
class:is-text={text}
class:is-danger={danger}>
<slot />
@@ -32,7 +30,6 @@
class="button"
class:is-only-icon={round}
class:is-secondary={secondary}
class:is-tertiary={tertiary}
class:is-danger={danger}
class:is-text={text}
type={submit ? 'submit' : 'button'}>
-6
View File
@@ -21,12 +21,6 @@ test('shows button - submit', () => {
expect(getByRole('button')).toHaveAttribute('type', 'submit');
});
test('shows button - tertiary', () => {
const { getByRole } = render(Button, { tertiary: true });
expect(getByRole('button')).toHaveClass('is-tertiary');
});
test('shows button - secondary', () => {
const { getByRole } = render(Button, { secondary: true });