mirror of
https://github.com/getredash/redash.git
synced 2026-03-22 10:00:17 -04:00
Use black instead of blue color for active item
This commit is contained in:
@@ -4,6 +4,7 @@ import { PageHeader } from '@/components/PageHeader';
|
||||
import { $location } from '@/services/ng';
|
||||
import settingsMenu from '@/services/settingsMenu';
|
||||
|
||||
import './SettingsWrapper.less';
|
||||
|
||||
function wrapSettingsTab(options, WrappedComponent) {
|
||||
if (options) {
|
||||
@@ -17,7 +18,7 @@ function wrapSettingsTab(options, WrappedComponent) {
|
||||
<div className="container">
|
||||
<PageHeader title="Settings" />
|
||||
<div className="bg-white tiled">
|
||||
<Menu selectedKeys={[activeItem && activeItem.title]} mode="horizontal">
|
||||
<Menu selectedKeys={[activeItem && activeItem.title]} selectable={false} mode="horizontal">
|
||||
{settingsMenu.items.map(item => (
|
||||
<Menu.Item key={item.title}><a href={item.path}>{item.title}</a></Menu.Item>
|
||||
))}
|
||||
|
||||
17
client/app/components/SettingsWrapper.less
Normal file
17
client/app/components/SettingsWrapper.less
Normal file
@@ -0,0 +1,17 @@
|
||||
@import '~antd/lib/menu/style/index';
|
||||
|
||||
.settings-screen {
|
||||
.@{menu-prefix-cls} {
|
||||
&-item > a:hover {
|
||||
color: black !important;
|
||||
}
|
||||
|
||||
&-item-selected {
|
||||
color: black !important;
|
||||
> a,
|
||||
> a:hover {
|
||||
color: black !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user