fix(button): set display to inline-flex for inline content
This commit is contained in:
parent
d5b00fe0d3
commit
f7ab53910d
2 changed files with 6 additions and 1 deletions
5
.changeset/tidy-owls-call.md
Normal file
5
.changeset/tidy-owls-call.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@lion/button': patch
|
||||
---
|
||||
|
||||
Set button host to inline-flex as a better default for when button content contains a before or after icon
|
||||
|
|
@ -53,7 +53,7 @@ export class LionButton extends DisabledWithTabIndexMixin(SlotMixin(LitElement))
|
|||
css`
|
||||
:host {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
display: inline-flex;
|
||||
box-sizing: border-box;
|
||||
vertical-align: middle;
|
||||
line-height: 24px;
|
||||
|
|
|
|||
Loading…
Reference in a new issue