Comments

RobKoberg’s picture

How about a simple text icon '+' or '⊕' with some styling? I can provide patches if interested. Let's close out these simple stoppers.

In global.styles.scss:

/* =============================================================================
 *   Misc Global Styles
 * ========================================================================== */

/*
 * Styling for simple text icon.
 */
.text-icon {
  font-size:1.4em;
  font-weight:bold;
  margin-right: 5px;
  color:$dark_gray;
}

In commons_trusted_contacts.module:

          // or use a circled plus ⊕
          $links['title'] = '<span class="text-icon add-trusted-contact-icon">+</span>' . t('Add as trusted contact');
          if ($account->uid) {
            $links['href'] = $url;
            $links['options'] = array('html' => TRUE, 'attributes' => array('class' => array('use-ajax'), 'id' => 'user-' . $entity->uid));

            // Ensure that the drupal.ajax and jquery.form libraries are always
            // loaded for AJAX toggle links.
            $element['#attached'] = array(
              'library' => array(
                array('system', 'drupal.ajax'),
                array('system', 'jquery.form'),
              ),
            );
          }
          else {
            $links['href'] = 'user/login';
            $links['options'] = array('html' => TRUE, 'query' => array('destination' => $url));
          }
        }
Zarabadoo’s picture

The "+" icon is added via glyph by way of css and the "Message contact" link gets an icon via a new image icon. I had to reduce the left and right padding on the small button format to get the buttons to remain inline on most screen sizes.

http://drupalcode.org/project/commons_origins.git/commit/2ef7ff5

Zarabadoo’s picture

Status: Active » Fixed

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