mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
feat: add disabled state to tooltip
This commit is contained in:
1 parent
db94577084
commit
1cadf708ad
1 file changed
+2
-1
@@ -1,10 +1,11 @@
|
||||
<script lang="ts">
|
||||
export let icon = 'info';
|
||||
export let aria = 'info';
|
||||
export let disabled = false;
|
||||
</script>
|
||||
|
||||
<button class="tooltip" aria-label={aria}>
|
||||
<span class={`icon-${icon}`} aria-hidden="true" />
|
||||
<span class:u-opacity-0-2={disabled} class={`icon-${icon}`} aria-hidden="true" />
|
||||
<span class="tooltip-popup" role="tooltip">
|
||||
<slot />
|
||||
</span>
|
||||
|
||||
Reference in new issue
Block a user