mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
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:
@@ -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',
|
||||
},
|
||||
|
||||
@@ -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]: {
|
||||
|
||||
@@ -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}`,
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user