Skip to content

Commit

Permalink
fix(table): fix fixed column background style issue in dark mode (#3398)
Browse files Browse the repository at this point in the history
  • Loading branch information
oljc authored Dec 26, 2024
1 parent 30348b9 commit 5187faa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/web-vue/components/table/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -860,3 +860,9 @@
width: auto;
}
}

@{arco-theme-tag}[arco-theme='dark'] {
.@{table-prefix-cls}-tr-checked .@{table-cls-td} {
background-color: @table-color-bg-body-row_active_dark;
}
}
3 changes: 3 additions & 0 deletions packages/web-vue/components/table/style/token.less
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
@table-color-bg-body-stripe-row: var(~'@{arco-cssvars-prefix}-color-fill-1');
@table-color-bg-body-row_hover: var(~'@{arco-cssvars-prefix}-color-fill-1');
@table-color-bg-body-row_active: var(~'@{arco-cssvars-prefix}-color-fill-1');
@table-color-bg-body-row_active_dark: var(
~'@{arco-cssvars-prefix}-color-neutral-2'
);

@table-color-expand-icon: var(~'@{arco-cssvars-prefix}-color-text-2');
@table-color-expand-icon-border: @color-transparent;
Expand Down

0 comments on commit 5187faa

Please sign in to comment.