fix(header-action-link): fix icon alignment with HeaderAction

This commit is contained in:
Eric Liu 2022-03-12 14:09:51 -08:00
commit 3d1f8800bd

View file

@ -22,7 +22,6 @@
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:action-link="{true}"
href="{href}" href="{href}"
rel="{$$restProps.target === '_blank' ? 'noopener noreferrer' : undefined}" rel="{$$restProps.target === '_blank' ? 'noopener noreferrer' : undefined}"
{...$$restProps} {...$$restProps}
@ -31,11 +30,11 @@
</a> </a>
<style> <style>
.action-link { .bx--header__action {
text-align: center; display: flex;
align-items: center; align-items: center;
vertical-align: middle;
justify-content: center; justify-content: center;
padding-top: 10px; /** Hot fix to align icon with `HeaderAction` */
padding-bottom: 2px;
} }
</style> </style>