Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When a dropbutton contains only one link, it turns into a simple button, which perfectly makes sense.
However, the button turns out to be considerably larger than the dropbutton, so at least whenever both are displayed on the same page, the CSS needs to be overridden.
See before:
and after:
For the remaining misalignment see: #1966072: Export UI ops dropbutton misaligned
Comment | File | Size | Author |
---|---|---|---|
#4 | ctools-dropbuttons_turning_into_a_simple_button-1966096-4.patch | 671 bytes | Andrew Answer |
#1 | ctools-dropbutton-button-css-1966096-1.patch | 644 bytes | Pancho |
ctools-dropbutton4.png | 3.03 KB | Pancho | |
ctools-dropbutton3.png | 5.73 KB | Pancho |
Comments
Comment #1
PanchoEnclosed patch moves some CSS rules from dropbutton.css to the more general button.css.
Comment #3
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 6 year old initial patch to button.css and dropbutton.css does not apply to the latest ctools 7.x-1.x-dev and needs a reroll.
Comment #4
Andrew Answer CreditAttribution: Andrew Answer as a volunteer commentedPatch rerolled.