Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

Metronic 8.1.6 - Demo 1 Menu Icon Bug


In 8.1.6, when you use the Dark Sidebar, you cannot follow the instructions here to change MenuItem icon colors without changes to the core SCSS.

_sidebar-dark.scss would appear to control the colors, so after much digging, setting $icon-color to null on Line 39 should have done the trick... but it didn't.

After wanting to flip my desk over for about 45 minutes, I started searching for $icon-color elsewhere in the project. It turns out that setting $icon-color to null on line 33 of _header-dark.scss is what allowed the .menu-icon-primary class to take over.

I believe this should be corrected so that the css options on Menu can be properly implemented. Right now the extra CSS in the theme seems unnecessary if you can just set color options on the menu container... and the theme clearly has no problem applying extensive class options elsewhere.


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi Robert,

Thank you for your feedback on this. We will check it further and apply the necessary code improvements.

In your case, It turns out that setting $icon-color to null is the right since the customization by _sidebar-dark.scss overrides the default menu state color options.

In the near future, we will be doing significant improvements based on the new Figma Design system to optimize the HTML and CSS file size.

Regards.


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(