diff --git a/components/list/demo/simple.vue b/components/list/demo/simple.vue
index 9ab30d009..017ad7707 100644
--- a/components/list/demo/simple.vue
+++ b/components/list/demo/simple.vue
@@ -33,7 +33,7 @@ Customizing the header and footer of list by setting `header` and `footer` prope
Footer
- Default Size
+ Default Size
{{ item }}
diff --git a/components/list/index.tsx b/components/list/index.tsx
index 60d91cdbc..3a233d183 100644
--- a/components/list/index.tsx
+++ b/components/list/index.tsx
@@ -29,6 +29,7 @@ import eagerComputed from '../_util/eagerComputed';
// CSSINJS
import useStyle from './style';
+import useCSSVarCls from '../config-provider/hooks/useCssVarCls';
export type { ListItemProps } from './Item';
export type { ListItemMetaProps } from './ItemMeta';
@@ -110,7 +111,8 @@ const List = defineComponent({
const { prefixCls, direction, renderEmpty } = useConfigInject('list', props);
// Style
- const [wrapSSR, hashId] = useStyle(prefixCls);
+ const rootCls = useCSSVarCls(prefixCls);
+ const [wrapSSR, hashId, cssVarCls] = useStyle(prefixCls, rootCls);
const paginationObj = computed(() =>
props.pagination && typeof props.pagination === 'object' ? props.pagination : {},
@@ -274,7 +276,9 @@ const List = defineComponent({
[`${prefixCls.value}-something-after-last-item`]: isSomethingAfterLastItem,
},
attrs.class,
+ cssVarCls.value,
hashId.value,
+ rootCls.value,
);
const paginationContent = props.pagination ? (