Current behavior:
Currently "div.ctools-modal-content .modal-header a" floats all anchor tags to the right, ALL of them.
Out of the box ctools provides one link that goes in the header section, which is the "close window" link. That link by all rights should be floated to the right (puns). this link has css selector of "div.ctools-modal-content a.close" which does not float this anchor to the right because it was already done so by the "ALL anchor links" css selector above it.

Proposed change:
Do NOT float all anchor links in header to the right.
Set explicit "a.close" css float:right.
Attached patch's solution maintains current behavior while no longer unwanted-ly affecting other anchor links that may be added to the modal title section.

Motivation:
I have a need to place links in modal title region. think of them as menu links... that's what they are for me. I hope not to be able to fight against ctools' css by setting ctools-negating css in my own theme.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

litwol’s picture

Title: Minor modal css fix. » Minor modal css fix. (with patch)
Status: Needs work » Needs review
FileSize
476 bytes
merlinofchaos’s picture

Status: Needs review » Fixed

Committed and pushed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.