[wp-hackers] cosmetic bug: <button> not styled the same as <input type="submit">

John Blackbourn johnbillion+wp at gmail.com
Sat Jun 9 11:43:31 GMT 2007


As you can see from line 337 of wp-admin.css (in 2.2), if you give
your <button> a class of 'button' and you put your <input
type="submit"> inside a paragraph with class 'submit' then they'll be
styled the same. Every submit button in the admin interface is inside
a paragraph with class 'submit', so it would be good practice to
follow this in your plugin.

HTH

On 6/9/07, Jeremy Visser <jeremy.visser at gmail.com> wrote:
> Charles Iliya Krempeaux wrote:
> > The <button> element does NOT get the same style as the <input
> > type="submit"> element.
> >
> > I.e., the buttons made with <button> do NOT look the same as the
> > buttons made with <input type="submit">
>
> This is probably because the <input type="submit"> do not have
> class="button".
>
> In my opinion, wp-admin's CSS should include something like the following:
>
> > button,
> > input.button,
> >
> > /* Add these three: */
> >
> > input[type=submit],
> > input[type=reset],
> > input[type=button] {
> >       /* the fancy button styles */
> > }
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list