Skip to content

Commit

Permalink
style(table): 优化 resizable 模式下列 hover 时样式 (#2996)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyprepare committed Sep 13, 2024
1 parent 6eb73ce commit bd92cea
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/clean-beans-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hi-ui/hiui": patch
---

style(table): 优化 resizable 模式下列 hover 时样式
5 changes: 5 additions & 0 deletions .changeset/clever-donuts-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hi-ui/table": patch
---

style: 优化 resizable 模式下列 hover 时样式
11 changes: 10 additions & 1 deletion packages/ui/table/src/styles/table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,14 @@ $emptyContent: '#{$component-prefix}-table-body-empty-content' !default;
position: relative;
background-clip: padding-box;

&:hover {
background-color: use-color('gray', 200);

.#{$prefix}-header__resizable-handle {
border-left-color: use-color('gray', 200);
}
}

&-handle {
box-sizing: content-box;
position: absolute;
Expand All @@ -208,8 +216,9 @@ $emptyContent: '#{$component-prefix}-table-body-empty-content' !default;
display: none;
}

.#{$prefix}-header__resizable:hover & {
&:hover {
background-color: use-color-mode('primary');
border-left-color: use-color('gray', 200);
}
}
}
Expand Down

0 comments on commit bd92cea

Please sign in to comment.