easy-digital-downloads
easy-digital-downloads copied to clipboard
Button labels inconsistency
Bug Report
Expected behavior
It would be better if button labels were only with the first word capitalized while other words were lowercase.
As it is shown on the button regarding discount in a screenshot below.
In that case, it would make the button styles more flexible.
Thus, the user would be able to fit labels to the website's design system.
Uppercase all words:
button {
text-transform: uppercase;
}
Lowercase all words:
button {
text-transform: lowercase;
}
Capitalize all words:
button {
text-transform: capitalize;
}
Actual behavior

Some EDD buttons show a label with the first word capitalized and other words lowercased, like the button for Discount section.
While other buttons show a label with capitalized all words, like the button from Software Licensing add-on.
As a result, it causes inconsistency in the plugin's elements.
The problem is that those buttons that show a label with capitalized all words are "hard-coded".
Example: "Renew An Existing License".
Thus, it's not possible to have a label with the first word capitalized and other words lowercased.
Steps to reproduce the behavior
- Enable Discount section
- Enable Software Licensing section
- Allow renewal
- Open checkout page with added product
Information (if a specific version is affected):
PHP Version: 7.4.1
EDD Version (or branch): 3.1.0.3
WordPress Version: 6.1.1