Topic: Extending MdbBootstrap SCSS files

alexz free asked 5 years ago


Expected behavior

Being able to write something like .button{ @extends btn; ... }

Actual behavior Getting build errors regarding dependencies for the ng-uikit-pro ng module.

I want to build off of your libraries but there are undefined varibales that are causing compilation errors.

I have import statements at the top of my styles.css file that cover all of the base sass files as well as the material libaries.

Is it possible to extend your scss files?


Arkadiusz Idzikowski staff answered 5 years ago


Unfortunately it's not possible from version 8 and later, because component styles are now loaded together with the specific module (they are not longer stored globally in the assets folder). The best way would be to overwrite our classes instead of extending them.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 7.5.3
  • Device: Desktop
  • Browser: Firefox/Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No