Opened 14 months ago
Last modified 13 months ago
#20446 new enhancement
Add comment form submit button class attribute
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Comments | Version: | 3.3.1 |
| Severity: | normal | Keywords: | has-patch needs-testing |
| Cc: |
Description
The comment_form() is packed with filters all over the place to customize the from just the way you need, but one thing i find missing is a class on the submit input tag and if there was a class attribute then it should be filterable.
I know you can set the input ID and simply style based on the ID selector but when designing themes usually you have some kind of class defined for buttons, especially when using any of the html5/responsive theme frameworks and if the comment submit input had a class which was filterable then it would make our lives much easier.
Attachments (1)
Change History (5)
comment:1
bainternet — 14 months ago
comment:2
bainternet — 13 months ago
- Keywords has-patch 2nd-opinion needs-testing added
Added patch to handle the comment form submit input class
ex:
comment_form(array('class_submit'=>'myclass'));
comment:3
bainternet — 13 months ago
- Keywords 2nd-opinion removed
comment:4
coffee2code — 13 months ago
- Version set to 3.3.1
Related: #15015 (patch there provides a solution that allows adding 'class' attribute to comment form submit button)

should be very simple , I'll upload a patch as soon as i get home.