
How do I change the background of this nav menu bar?
import ant-design CSS in App.css using following command:
@import '~antd/dist/antd.css';
and copy paste following command to change background color of current selected menu option:
.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
background: transparent;
}
and to change background you can use either of given options:
in <Menu> use theme='dark' or 'light' i.e. <Menu theme='light'>
or
.ant-menu{
background: your-color;
}
Most helpful comment
import ant-design CSS in App.css using following command:
@import '~antd/dist/antd.css';and copy paste following command to change background color of current selected menu option:
and to change background you can use either of given options:
in
<Menu> use theme='dark' or 'light' i.e. <Menu theme='light'>or
2.