mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
fix(header-action-link): align icon with HeaderAction
(#1161)
This commit is contained in:
parent
e2c980e23a
commit
5d153601b3
2 changed files with 37 additions and 40 deletions
|
@ -54,7 +54,6 @@
|
|||
}}"
|
||||
/>
|
||||
|
||||
<div>
|
||||
<button
|
||||
bind:this="{ref}"
|
||||
type="button"
|
||||
|
@ -90,7 +89,6 @@
|
|||
<slot />
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.action-text {
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
bind:this="{ref}"
|
||||
class:bx--header__action="{true}"
|
||||
class:bx--header__action--active="{linkIsActive}"
|
||||
class:action-link="{true}"
|
||||
href="{href}"
|
||||
rel="{$$restProps.target === '_blank' ? 'noopener noreferrer' : undefined}"
|
||||
{...$$restProps}
|
||||
|
@ -31,11 +30,11 @@
|
|||
</a>
|
||||
|
||||
<style>
|
||||
.action-link {
|
||||
text-align: center;
|
||||
.bx--header__action {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
vertical-align: middle;
|
||||
justify-content: center;
|
||||
padding-top: 10px;
|
||||
/** Hot fix to align icon with `HeaderAction` */
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue