fix: Layout missing use colorBgLayout (#38041)

This commit is contained in:
二货爱吃白萝卜 2022-10-16 00:10:35 +08:00 committed by GitHub
parent 490c1ddf2b
commit f85698f70e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -213,9 +213,13 @@ export default genComponentStyleHook(
return [genLayoutStyle(layoutToken)];
},
{
colorBgHeader: '#001529',
colorBgBody: '#f0f2f5',
colorBgTrigger: '#002140',
token => {
const { colorBgLayout } = token;
return {
colorBgHeader: '#001529',
colorBgBody: colorBgLayout,
colorBgTrigger: '#002140',
};
},
);