mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
Revert "docs(tooltip): hotfix reactive example #872 [ci skip]"
This reverts commit 3a0e2e92b8
.
This commit is contained in:
parent
0e460cdd91
commit
a298a1bf15
1 changed files with 10 additions and 10 deletions
|
@ -9,15 +9,15 @@
|
|||
</Tooltip>
|
||||
|
||||
<div style="margin-top: var(--cds-spacing-12);">
|
||||
<Button size="small" disabled="{open}" on:click="{() => (open = true)}">
|
||||
Open
|
||||
</Button>
|
||||
<Button
|
||||
size="small"
|
||||
kind="secondary"
|
||||
disabled="{!open}"
|
||||
on:click="{() => (open = false)}"
|
||||
>
|
||||
Close
|
||||
<Button size="small" on:click="{() => (open = !open)}">
|
||||
{open ? "Close tooltip" : "Open tooltip"}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<div>Open: {open}</div>
|
||||
|
||||
<style>
|
||||
div {
|
||||
margin-top: var(--cds-spacing-05);
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue