Topic: Path variable for images not fully functional
admin5 pro asked 7 years ago
We are getting there XD
I refer back to my previous questions:
Can we get path variable in Sass
Can we get path variable in Sass (ASKING AGAIN)
In the latest version you have introduced the image-path variable:
$image-path: '../img/';
There is however 2 problems with this:
- It is not
$image-path: '../img/' !default;
Which means that I can't override it without changing the mdb.scss file. The!default
needs to be added. - In _masks.scss you link to images without using the newly introduced image variable
background: url('../img/overlays/#{$filename}.png');
should bebackground: url('#{$image-path}/overlays/#{$filename}.png');
I have just tested the free version (because I'm on a open source project) installed via npm install mdbootstrap
, so there could be more occurrences of this issue in the paid version.
Marta Wierzbicka staff answered 6 years ago
Marta Wierzbicka staff answered 6 years ago
Gunnar Gabrielson free commented 6 years ago
Just FYI it is not fixed as of yet in MDBReact / Pro.Marta Wierzbicka staff answered 7 years ago
ghengeli pro commented 6 years ago
So glad to see this issue STILL EXISTS SIX MONTHS LATER...Marta Wierzbicka staff commented 6 years ago
Hi, our sass code is still changing and we still improving it.Gunnar Gabrielson free commented 6 years ago
Yes I have this same issue. I am compiling the sass out of my node_modules and am able to change the font path variable, but as the original poster said, the $image-path does not have the default flag and the overlays also remain an issue. This issue was reported 8 months ago... any chance that this ever gets fixed?FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: Yes
- Provided link: Yes
free commented 7 years ago Edit Delete
Delete this comment?
I've changes category because MDB jQuery team is responsible for scss files.Delete