fix: update rc-virtual-list and fix scrollbar color in dark theme (#54155)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
afc163
2025-06-20 22:55:32 +08:00
committed by GitHub
parent 7b75aab9af
commit f90fa3611d
4 changed files with 7 additions and 1 deletions

View File

@@ -199,6 +199,8 @@ const genBaseStyle: GenerateStyle<ListToken> = (token) => {
[componentCls]: {
...resetComponent(token),
position: 'relative',
// fix https://github.com/ant-design/ant-design/issues/46177
['--rc-virtual-list-scrollbar-bg' as const]: token.colorSplit,
'*': {
outline: 'none',
},

View File

@@ -265,6 +265,8 @@ const genTableStyle: GenerateStyle<TableToken, CSSObject> = (token) => {
[`${componentCls}-wrapper`]: {
clear: 'both',
maxWidth: '100%',
// fix https://github.com/ant-design/ant-design/issues/46177
['--rc-virtual-list-scrollbar-bg' as const]: token.tableScrollBg,
...clearFix(),
[componentCls]: {

View File

@@ -124,6 +124,8 @@ export const genBaseStyle = (prefixCls: string, token: TreeToken): CSSObject =>
return {
[treeCls]: {
...resetComponent(token),
// fix https://github.com/ant-design/ant-design/issues/50316
['--rc-virtual-list-scrollbar-bg' as const]: token.colorSplit,
background: token.colorBgContainer,
borderRadius: token.borderRadius,
transition: `background-color ${token.motionDurationSlow}`,

View File

@@ -294,7 +294,7 @@
"puppeteer": "^24.7.1",
"rc-footer": "^0.6.8",
"rc-tween-one": "^3.0.6",
"rc-virtual-list": "^3.17.0",
"rc-virtual-list": "^3.19.1",
"react": "^19.1.0",
"react-copy-to-clipboard": "^5.1.0",
"react-countup": "^6.5.3",