[wp-trac] [WordPress Trac] #20446: Add comment form submit button class attribute

WordPress Trac noreply at wordpress.org
Sun Mar 16 06:16:59 UTC 2014


#20446: Add comment form submit button class attribute
-----------------------------------------+------------------------------
 Reporter:  bainternet                   |       Owner:
     Type:  enhancement                  |      Status:  reopened
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Comments                     |     Version:  3.3.1
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:
-----------------------------------------+------------------------------

Comment (by iamdmitrymayorov):

 Agree with spacedmonkey. No doubt that it is possible to style the button
 using the id. But if you are using bootstrap and less and do something
 like this:
 {{{
 #submit {
  .btn;
  .btn-primary;
 }
 }}}
 After compiling, your css file becomes 2Kb heavier because  all the
 bootstrap button styles are now applied one more time to our tiny button.
 If there was a possibility to add class this could be avoidable. I agree
 it's not 100% semantically correct but good in terms of saving bandwidth.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/20446#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list