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