[PRO - Angular] Forms - Switch Pro classes don't do any


Topic: [PRO - Angular] Forms - Switch Pro classes don't do anything

allantra pro asked 6 years ago

I have also checked the latest version (6.14) of repo and it does not show any specific classes in switch.scss file that would pertain to the documentation: https://mdbootstrap.com/angular/forms/switch/ I would love to use .primary-switch or .blue-switch etc. Am I missing something? Have updated node_modules and npm install'd, it shows 6.14 as latest.

Damian Gemza staff commented 6 years ago

Dear allantra, You have to write your own classes for changing background color of switch. Please take a look here at Basic Switch color variations: https://mdbootstrap.com/angular/forms/switch/ Best Regards, Damian

allantra pro commented 6 years ago

Totally get that.... I'm trying to get the basic switch color variations to work, but they do not change how the switch looks when I apply the appropriate class.

allantra pro answered 6 years ago

So, it's not that the [PRO] features of the Switch form control are not working... It's that you have to include those features yourself? I think you guys need to outline what features are built-in to the MDB CSS framework in the documentation and which are not. For the form Switch, other than the basic switch, all of the other [PRO] features don't work out-of-the-box (Ie. when I download/import MDB from Gitlab). Please, please add notes where we have to manually add these additions; From the examples it appears as though I can just add a class and have my switch be a different color scheme and/or shape. I'm sure there are other places in the documentation where I've been misled by this and wondered why the classes aren't working... Thanks :)

Damian Gemza staff commented 6 years ago

Dear Allantra, Could you please specify, which components don't work out-of-the-box? In which cases you have to add something special? If some component doesn't work out-of-the-box, we're providing a fully working code in our docs, for example: Switch with color variations. There's HTML markup for a switch, and scss to get proper styling for this element. Best Regards, Damian

allantra pro commented 6 years ago

Hey Damian, As I mentioned, it was the color schemes and shape classes for the switches which don't work out-of-the-box; You've mentioned that you provide full working code, and that is true, no disagreement there. I'm trying to help you and your future customers by suggesting that your team add something to that part of the documentation that clearly indicates that those features don't work unless they are implemented by including the code that your team has put on those pages. It's not clear at all that I needed to add that SCSS code to my project to get color schemes to work. Thanks :)

Damian Gemza staff commented 6 years ago

Dear allantra, You don't need to add some SCSS code to get color schemes working. We're providing it out-of-the-box. But in some cases, it's better for us and for our users to provide them a few lines of ready to use SCSS code which they will copy to their applications, and component gets proper stylings. But thanks for your report. We'll think about implementing a CSS class for switch instead of code to copy. Best Regards, Damian

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 Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No