-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
๐[BUG] Dark mode is removed from Pro Layout #6056
Comments
navTheme ๅ ้คไบ๏ผ |
Looks like it from this commit . Still, there is a prop definion for |
We recommend using the token method to configure, we have a related demo |
@chenshuai2144, i see the const [darkMode, setDarkMode] = useState(false);
<ProLayout
token={{
bgLayout: darkMode ? '#000' : '#f0f2f5',
}} Even I changed the darMode state, the bg color remained the same when it was first rendered. The previous <ProLayout
navTheme={darkMode ? 'dark' : 'light'}
headerTheme={darkMode ? 'dark' : 'light'} Should I create a separate ticket? |
ๆ้ฎๅๅ ็็๏ผ
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
๐ bug ๆ่ฟฐ
navTheme
andheaderTheme
props are removed in version 7.x.x. No explanation for removing is there on the changelog. Also, can't find any alternative to enable the dark mode.An undocumented prop type
navTheme
is available but it only adds a drop shadow.In this commit it's removed.
Version:
"@ant-design/pro-layout": "^7.1.4"
๐ท ๅค็ฐๆญฅ้ชค
๐ ๆๆ็ปๆ
๐ป ๅค็ฐไปฃ็
ยฉ ็ๆฌไฟกๆฏ
๐ ๅ ถไปไฟกๆฏ
The text was updated successfully, but these errors were encountered: