Skip to content

Commit

Permalink
fix(button): style breaks in some edge cases when tag is set to <a>
Browse files Browse the repository at this point in the history
  • Loading branch information
kiaking committed Jan 12, 2023
1 parent 6626a8d commit 24a33dc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/components/SButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ function handleClick(): void {
<style lang="postcss" scoped>
.SButton {
position: relative;
display: inline-block;
display: inline-flex;
align-items: center;
letter-spacing: 0;
text-align: center;
border: 1px solid transparent;
border-radius: 6px;
Expand Down Expand Up @@ -590,7 +592,7 @@ function handleClick(): void {
}
.SButton.block {
display: block;
display: flex;
width: 100%;
}
Expand Down

0 comments on commit 24a33dc

Please sign in to comment.