【发布时间】:2020-08-14 08:46:14
【问题描述】:
【问题讨论】:
标签: css angular typescript sass nebular
【问题讨论】:
标签: css angular typescript sass nebular
根据Nebular menu documentation,您可以为很多不同的情况设置自己的颜色变量,包括元素状态。在您的特定情况下,您需要将变量 menu-item-icon-active-color 和 menu-item-active-text-color 的值设置为您想要的颜色。
由于您使用的是 ngx-admin,您可以打开文件 src/app/@theme/styles/themes.scss 并在第一个 nb-register-theme 块中添加以下行:
$nb-themes: nb-register-theme((
menu-item-icon-active-color: green,
menu-item-active-text-color: green //this is what you need to add
.. //rest of the variables
..
【讨论】: