mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
chore: v11 UIShell
This commit is contained in:
parent
5833536199
commit
068f00b723
3 changed files with 4 additions and 5 deletions
|
@ -70,6 +70,7 @@
|
||||||
type="button"
|
type="button"
|
||||||
class:bx--header__action="{true}"
|
class:bx--header__action="{true}"
|
||||||
class:bx--header__action--active="{isOpen}"
|
class:bx--header__action--active="{isOpen}"
|
||||||
|
class:bx--btn--icon-only="{!text}"
|
||||||
class:action-text="{text}"
|
class:action-text="{text}"
|
||||||
{...$$restProps}
|
{...$$restProps}
|
||||||
on:click
|
on:click
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
bind:this="{ref}"
|
bind:this="{ref}"
|
||||||
class:bx--header__action="{true}"
|
class:bx--header__action="{true}"
|
||||||
class:bx--header__action--active="{linkIsActive}"
|
class:bx--header__action--active="{linkIsActive}"
|
||||||
|
class:bx--btn--icon-only="{true}"
|
||||||
href="{href}"
|
href="{href}"
|
||||||
rel="{$$restProps.target === '_blank' ? 'noopener noreferrer' : undefined}"
|
rel="{$$restProps.target === '_blank' ? 'noopener noreferrer' : undefined}"
|
||||||
{...$$restProps}
|
{...$$restProps}
|
||||||
|
@ -34,10 +35,6 @@
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.bx--header__action {
|
.bx--header__action {
|
||||||
display: flex;
|
color: var(--bx-text-primary);
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
/** Hot fix to align icon with `HeaderAction` */
|
|
||||||
padding-bottom: 2px;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
bind:this="{ref}"
|
bind:this="{ref}"
|
||||||
class:bx--header__action="{true}"
|
class:bx--header__action="{true}"
|
||||||
class:bx--header__action--active="{isActive}"
|
class:bx--header__action--active="{isActive}"
|
||||||
|
class:bx--btn--icon-only="{true}"
|
||||||
{...$$restProps}
|
{...$$restProps}
|
||||||
on:click
|
on:click
|
||||||
>
|
>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue