mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
Merge pull request #216 from IBM/fix-tooltip-icon
fix(tooltip-icon): avoid $$restProps.class override
This commit is contained in:
commit
c7985b784d
1 changed files with 5 additions and 4 deletions
|
@ -9,8 +9,8 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:body
|
<svelte:body
|
||||||
on:keydown={e => {
|
on:keydown={({ key }) => {
|
||||||
if (e.key === 'Escape') {
|
if (key === 'Escape') {
|
||||||
hidden = true;
|
hidden = true;
|
||||||
}
|
}
|
||||||
}} />
|
}} />
|
||||||
|
@ -21,9 +21,10 @@
|
||||||
class:bx--tooltip__trigger={true}
|
class:bx--tooltip__trigger={true}
|
||||||
class:bx--tooltip--a11y={true}
|
class:bx--tooltip--a11y={true}
|
||||||
class:bx--tooltip--hidden={hidden}
|
class:bx--tooltip--hidden={hidden}
|
||||||
class="{direction && `bx--tooltip--${direction}`}
|
|
||||||
{align && `bx--tooltip--align-${align}`}"
|
|
||||||
{...$$restProps}
|
{...$$restProps}
|
||||||
|
class="{direction && `bx--tooltip--${direction}`}
|
||||||
|
{align && `bx--tooltip--align-${align}`}
|
||||||
|
{$$restProps.class}"
|
||||||
on:click
|
on:click
|
||||||
on:mouseover
|
on:mouseover
|
||||||
on:mouseenter
|
on:mouseenter
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue