CSS classes should be plugin specific!
-
Hello, whilst this is a great plugin to link account and website, there are some fundamental issues that are advised right from the very start when developing WordPress plugins.
The CSS files for your admin styles are NOT plugin specific i.e. there are declarations in this file that are affecting other parts of WordPress.
As an example, in the file buy-me-a-coffee-admin.css there are declarations that look like this:
.orange { background-color: #ff813f; } .purple { background-color: #5f7fff; } .violet { background-color: #bd5fff; } .red { background-color: #ff5f5f; } .turquoise { background-color: #79d6b5; }
Having this CSS file loaded is going to affect ANY div that contains these classes, not just those being used with the widget or button.
This is highlighted in the WordPress plugin docs when creating plugins:
https://developer.www.ads-software.com/plugins/plugin-basics/best-practices/#prefix-everything
As a result, this causes items in the WordPress admin area to look completely misconfigured and broken (such as the Site Health dashboard widget).
Please fix this. If you would like me to create a pull request on GitHub, I will happily do so.
- The topic ‘CSS classes should be plugin specific!’ is closed to new replies.