Topic: how to remove waves effect on buttons with .btn class
Avinash Dv
asked 3 years ago
Marta Szymanska
staff pro premium answered 3 years ago
mdb.js: Waves.attach('.btn:not(.btn-flat), .btn-floating', ['waves-light']);, safe the file and minify it will work. If you don't minify mdb.js file, please remember to use in your index.html this script <script type="text/javascript" src="js/mdb.js"></script>.
Best,
Marta webgenery commented a year ago
This is not easier to add a class 'no-waves' and did something like that ? Waves.attach('.btn:not(.btn-flat):not(.no-waves)
Maybe add this in next version to avoid making manual changes in mdb.js
Marta Szymanska staff pro premium commented a year ago
Hi,
thank you for your suggestion, we will think about it.
Best, Marta
Answered
- User: Free
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: Yes