You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and there is no theme prop or any token which could change this.
Menu has a theme prop. When we render Menu inside Layout.Header we should be able to set both either to light or dark theme so that they work together nicely.
You are right here that we need to build this feature, But I observe that if we use a theme prop for the header it will contain white color, here we face more issues it mixes with the second section if it has white color, so if give white color to the header need also heard shadow or border which is identify this is a header section
What problem does this feature solve?
Layout.Header
background color is set to darkant-design/components/layout/style/index.ts
Line 220 in d80fa29
theme
prop or any token which could change this.Menu
has atheme
prop. When we render Menu inside Layout.Header we should be able to set both either to light or dark theme so that they work together nicely.Here is a simple demo https://codesandbox.io/s/header-content-footer-antd-5-1-6-forked-c1e3u4?file=/demo.tsx
What does the proposed API look like?
<Layout.Header theme="light | dark" />
The text was updated successfully, but these errors were encountered: