Search code examples
ruby-on-railssimple-formrequired

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?


Solution

  • 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 :)