Topic: [PRO - Angular] Forms - Switch Pro classes don't do anything
allantra pro answered 6 years ago
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, Damianallantra 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, DamianFREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
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, Damianallantra 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.