Skip to content

Commit

Permalink
fix: #1493
Browse files Browse the repository at this point in the history
  • Loading branch information
Wugaoliang committed Jan 5, 2021
1 parent be7b178 commit 922acb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 3.3.1

- 修复 `SelectTree` 搜索输入框在输入值时失焦问题 [#1491](https://github.com/XiaoMi/hiui/issues/1491)
- 修复 `Tabs` 组件垂直方向样式显示错误 [#1493](https://github.com/XiaoMi/hiui/issues/1493)
## 3.3.0
- 新增 `Card` 模式模式下 loading 加载中状态 [#1454](https://github.com/XiaoMi/hiui/issues/1454)
- 新增 `Table` loading 加载中状态 [#1466](https://github.com/XiaoMi/hiui/issues/1466)
Expand Down
11 changes: 7 additions & 4 deletions components/tabs/style/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ $prefix: 'hi-tabs' !default;
cursor: pointer;
border: 1px solid transparent;
transition: all 300ms;

&:not(&--disabled):focus {
outline: none;
color: use-color('primary');
Expand Down Expand Up @@ -112,6 +113,12 @@ $prefix: 'hi-tabs' !default;
}
}

&.hi-tabs--line:not(.hi-tabs--vertical) {
.hi-tabs__item:first-of-type {
padding-left: 0;
}
}

&--card.#{$prefix}--vertical {
display: flex;
flex-wrap: nowrap;
Expand Down Expand Up @@ -290,10 +297,6 @@ $prefix: 'hi-tabs' !default;
padding: 0 16px;
box-sizing: border-box;

&:first-of-type {
padding-left: 0;
}

&:hover {
color: use-color('primary');
}
Expand Down

0 comments on commit 922acb3

Please sign in to comment.