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:
Before

and after:
After

For the remaining misalignment see: #1966072: Export UI ops dropbutton misaligned

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Pancho’s picture

Enclosed patch moves some CSS rules from dropbutton.css to the more general button.css.

Chris Matthews’s picture

Issue summary: View changes
Status: Needs review » Needs work
Issue tags: +Needs reroll

The 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.

Checking patch css/button.css...
error: while searching for:
.ctools-button-processed .ctools-content ul {
  list-style-image: none;
  list-style-type: none;
}

.ctools-button-processed li {

error: patch failed: css/button.css:19
error: css/button.css: patch does not apply
Checking patch css/dropbutton.css...
Hunk #1 succeeded at 27 (offset -2 lines).
Andrew Answer’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
671 bytes

Patch rerolled.