Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails simple_form gives dots under stars for required fields, better way to remove them?

In many of my projects I use simple_form and love it. However one really strange quirk that I find is that I get 3 small dots underneath the * it supplies for required fields.

I have to get around it with:

= f.input :name, :label => '*', :required => false # Display purpose only (it is required)

Which is messy because the field is required, so this code looks ugly.

Is there a better fix for what seems like a common problem?

like image 317
Michael Durrant Avatar asked Jul 19 '11 14:07

Michael Durrant


2 Answers

I think it's from CSS, if you are useing blueprint, "abbr and accronym" tags have a border-bottom: 1px dotted black style.

Try add to your css file the next line :

abbr, accronym{ border-bottom: 0px; } /*try adding !important  after 0px if doesn't work*/

Wish helps :)

like image 112
jramby Avatar answered Nov 15 '22 01:11

jramby


It seems like CSS stuff. See what are the properties for abbr tags on your CSS.

like image 21
rafaelfranca Avatar answered Nov 14 '22 23:11

rafaelfranca