mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
rebase upstream
This commit is contained in:
parent
00bb031bf4
commit
da470313c4
11 changed files with 2087 additions and 574 deletions
|
@ -19,8 +19,13 @@
|
|||
<button
|
||||
aria-label={type}
|
||||
class={cx('--header__action', componentIsActive && '--header__action--active')}
|
||||
type="button">
|
||||
<Icon {...icon} render={icon[0].render} />
|
||||
type="button"
|
||||
on:keydown={({ key }) => {
|
||||
if (key === 'Enter') {
|
||||
componentIsActive = !componentIsActive;
|
||||
}
|
||||
}}>
|
||||
<Icon {...icon[0]} render={icon[0].render} />
|
||||
</button>
|
||||
{#if componentIsActive}
|
||||
<div
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue