mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 11:59:34 +00:00
feat(button): add v11 styles (#1642)
* feat(button): adopt v11 styles - forward focus and blur events - provide button role for custom elements using 'as' BREAKING CHANGE: danger-tertiary and danger-ghost props were renamed to danger--tertiary and danger--ghost BREAKING CHANGE: buttons now have a larger minimum width * test: update button test
This commit is contained in:
parent
058f3205e9
commit
6fc0ab3290
7 changed files with 72 additions and 61 deletions
|
@ -1,5 +1,5 @@
|
|||
<script lang="ts">
|
||||
import { Button } from "../types";
|
||||
import { Button } from "../package";
|
||||
import Add from "carbon-icons-svelte/lib/Add.svelte";
|
||||
</script>
|
||||
|
||||
|
@ -13,9 +13,9 @@
|
|||
|
||||
<Button kind="danger">Danger button</Button>
|
||||
|
||||
<Button kind="danger-tertiary">Danger tertiary button</Button>
|
||||
<Button kind="danger--tertiary">Danger tertiary button</Button>
|
||||
|
||||
<Button kind="danger-ghost">Danger ghost button</Button>
|
||||
<Button kind="danger--ghost">Danger ghost button</Button>
|
||||
|
||||
<Button icon="{Add}">With icon</Button>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue