New Metronic Docs!Added Integration Docs with Starter Kits Apps for Laravel, Laravel Livewire, Angular, Vue, Symfony, Blazor Server, Django & Flask & more
Browse Docs

Metronic 9 angular update to 9.3.1 styles issues


I have a working angular project with metronic 9.21. I now want (need) the bugfixes from 9.3.1. I tried using the files from metronic-tailwind-html-demos/dist/assets and overwriting my local files with these.

Now I get many syntax warnings from the styles.css:

Expected identifier but found "&" [css-syntax-error]

src/assets/css/styles.css:6169:39:
6169 │ .kt-menu-item.show > .kt-menu-link.& {

These errors makes sense, as css does not have "&" as a feature. why is this in there?! My older styles.css from 9.21 has valid code like:

.kt-menu-item-show\:text-foreground.kt-menu-item.show,
.kt-menu-item.show>.kt-menu-link .kt-menu-item-show\:text-foreground,
.kt-menu-item.show>.kt-menu-label .kt-menu-item-show\:text-foreground,
.kt-menu-item.show>.kt-menu-toggle .kt-menu-item-show\:text-foreground {
color: var(--foreground)
}

I cant update with these errors.


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 Samuel Reinfelder

Sorry for the inconvenience. We will fix this issue.

Thanks


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  :(