Due to larger dimensions of styled buttons compared to regular system buttons, styled buttons more than often look wrong in complex forms (Views, Panels, etc.). This patch disables styled buttons for all paths below 'admin/', but at the same time adds a hidden variable to disable this behavior.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | Screenshot: conflict with Rootcandy on NODE EDIT page | 7.03 KB | wojtha |
| #2 | Screenshot: NODE EDIT page after patch | 9.7 KB | wojtha |
| #2 | PATCH: button_style-ignore_admin.patch | 1.02 KB | wojtha |
| button_style-ignore_admin.patch | 975 bytes | smk-ka |
Comments
Comment #1
mpaler commentedworks as described.
+1 to include in module.
Comment #2
wojtha commentedThanks, patch is working for the admin pages under admin/* path ... BUT there is a setting which allows use admin theme on the node add/edit page. With patch from @smk-ka I still have conflict between Rootcandy and Button style on the Node edit/add page.
I suggest to change the condition to this:
Patch attached.
Comment #3
robloachI think #559712: Button Style on a per-theme basis might be a better solution. I want the button looks on the administration pages if I'm on a different theme than Root Candy.
Comment #4
wojtha commented@Rob Loach, agree, your patch is better, I was too lazy to make it this way ;-)
Comment #5
sunWhile this patch itself works, it breaks the design/layout of a theme on administrative pages. If I'm not mistaken, then this patch was not in relation to a separate admin theme originally. Instead, I think that a custom button style did not look nice on some highly custom administrative forms (like Views UI, Panels).
In the end, it would probably better to implement support for http://drupal.org/project/form, so you can disable button style for certain forms.