mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: remove tertiary button
This commit is contained in:
1 parent
0fd6d51a45
commit
0e5331fa3b
2 files changed
-9
No files matched your search
@@ -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'}>
|
||||
|
||||
@@ -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 });
|
||||
|
||||
|
||||
Reference in new issue
Block a user