Skip to content

Commit

Permalink
fix(comp:button): button-group display: inline-flex (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
danranVm committed Dec 24, 2021
1 parent 4d7bbff commit 60dc8c3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/components/button/demo/Icon.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
order: 8
order: 5
title:
zh: 按钮图标
---
Expand Down
2 changes: 1 addition & 1 deletion packages/components/button/demo/Shape.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
order: 6
order: 7
title:
zh: 按钮形状
---
Expand Down
2 changes: 1 addition & 1 deletion packages/components/button/demo/Size.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
order: 5
order: 6
title:
zh: 按钮尺寸
---
Expand Down
3 changes: 3 additions & 0 deletions packages/components/button/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@
}

.@{button-group-prefix} {
display: inline-flex;
align-items: center;

.@{button-prefix} {
z-index: @zindex-auto;
border-radius: 0;
Expand Down
7 changes: 3 additions & 4 deletions packages/site/src/components/views/home/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,15 @@ export default defineComponent({
&-btn-group {
&.ix-button-group {
display: flex;
@media (max-width: @screen-xs-max) {
text-align: center;
}
.ix-button {
margin: 0 16px;
font-size: 18px;
display: flex;
justify-content: center;
align-items: center;
height: 40px;
line-height: 40px;
padding: 0;
width: 160px;
border-radius: 32px;
border-color: @color-primary;
Expand Down

0 comments on commit 60dc8c3

Please sign in to comment.