CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Spaces between labels and * required, can we remove?
Pages: [1]

Author Topic: Spaces between labels and * required, can we remove?  (Read 1126 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Spaces between labels and * required, can we remove?
April 11, 2011, 02:54:48 pm
Code like this occasionally wraps the * to the next line.  By eliminating the space and adding padding to the *'s <span (or substituting a &nbsp; instead) we can eliminate this rare but unsightly usability issue.  Is there a central code location where we could make this change? or is it spread out through many .php and .tpl files?

Adding "nowrap" to the label selector seems inappropriate because we do want to the label words to wrap, we just don't want the * to wrap.

Code: [Select]
<div class="label"><label for="first_name">  First Name
     <span class="crm-marker" title="This field is required.">*</span>
« Last Edit: April 11, 2011, 02:56:51 pm by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Spaces between labels and * required, can we remove?
April 11, 2011, 02:58:20 pm
This is generated by Quickform library. So your fix will affect all the form.

Kurund
Found this reply helpful? Support CiviCRM

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Spaces between labels and * required, can we remove?
April 11, 2011, 03:12:58 pm
Is it a good thing to edit the Quickform library, or should I stay away?  Is there a file in particular I should look for?
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Spaces between labels and * required, can we remove?
April 11, 2011, 03:42:12 pm
I think this would be good to fix. Can you check packages/HTML/QuickForm.php

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Spaces between labels and * required, can we remove?

This forum was archived on 2017-11-26.