Hello,

It would be nice to target reference-autocomplete result differently with CSS when its invalid or empty. For this some simple css classes could be added to the reference element instead of using only always the same class. This way a theme can easily style it red or smething like that when its an invalid search.

I am attaching a simple patch that accomplishes this.

Best regards

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joaogarin created an issue. See original summary.

joaogarin’s picture

joaogarin’s picture

joaogarin’s picture

Status: Active » Needs review

  • vasike committed 39443b0 on 7.x-1.x authored by joaogarin
    Issue #2821634 by joaogarin. vasike: Add classes for reference input...
vasike’s picture

Status: Needs review » Fixed

i think it helps, so committed.
thank you

Status: Fixed » Closed (fixed)

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