<f:submit wraps around legacy YUI buttons still, where a lot of individual buttons have been migrated to jenkins-button s already.
It would make sense to continue this process here, and move the class parameter from a primary button to a primary jenkins button, e.g., like https://weekly.ci.jenkins.io/design-library/Buttons/