Skip to content

Commit 481420a

Browse files
committed
chore: v11 UIShell
1 parent 5d21345 commit 481420a

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/UIShell/HeaderAction.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
type="button"
7171
class:bx--header__action="{true}"
7272
class:bx--header__action--active="{isOpen}"
73+
class:bx--btn--icon-only="{!text}"
7374
class:action-text="{text}"
7475
{...$$restProps}
7576
on:click

src/UIShell/HeaderActionLink.svelte

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
bind:this="{ref}"
2323
class:bx--header__action="{true}"
2424
class:bx--header__action--active="{linkIsActive}"
25+
class:bx--btn--icon-only="{true}"
2526
href="{href}"
2627
rel="{$$restProps.target === '_blank' ? 'noopener noreferrer' : undefined}"
2728
{...$$restProps}
@@ -34,10 +35,6 @@
3435

3536
<style>
3637
.bx--header__action {
37-
display: flex;
38-
align-items: center;
39-
justify-content: center;
40-
/** Hot fix to align icon with `HeaderAction` */
41-
padding-bottom: 2px;
38+
color: var(--bx-text-primary);
4239
}
4340
</style>

src/UIShell/HeaderGlobalAction.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
bind:this="{ref}"
1818
class:bx--header__action="{true}"
1919
class:bx--header__action--active="{isActive}"
20+
class:bx--btn--icon-only="{true}"
2021
{...$$restProps}
2122
on:click
2223
>

0 commit comments

Comments
 (0)