[4.5.0] Typo in sass function wreaking havoc


Topic: [4.5.0] Typo in sass function wreaking havoc

Xeevis pro asked 7 years ago

At the end of file MDB/scss/pro/picker/_default.scss there is a rule

.picker__input.picker__input--active {
 border-color: magp-get($blue, "lighten-5");
}

It should be map-get, right now compiler produces invalid CSS which my minifier (csso) is refusing to minify.

Instead of

border-color: #e3f2fd;

We get

border-color: magp-get(("lighten-5": #e3f2fd, "lighten-4": #bbdefb, "lighten-3": #90caf9, "lighten-2": #64b5f6, "lighten-1": #42a5f5, "base": #2196f3, "darken-1": #1e88e5, "darken-2": #1976d2, "darken-3": #1565c0, "darken-4": #0d47a1, "accent-1": #82b1ff, "accent-2": #448aff, "accent-3": #2979ff, "accent-4": #2962ff), "lighten-5");

Marta Szymanska staff pro premium answered 7 years ago

Hi, thanks a lot for noticing this bug and we will fix this in next release. If you can fix this by yourself for your project, it's great. Could you tell me if this bug causes other issues in MDB? If you see anything, of course. Best, Marta
Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: Yes
  • Provided link: No