projectblacklight / blacklight

Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr) index.
http://projectblacklight.org/
Other
760 stars 256 forks source link

Search box should have rounded left/start border when only one search field is configured #3448

Closed corylown closed 1 week ago

corylown commented 1 week ago

Current behavior:

Screenshot 2024-11-21 at 8 35 24 AM

Expected behavior:

Screenshot 2024-11-21 at 8 56 22 AM

There are two problems. When only one search field is configured the SearchBarComponent sets the rounded-left class on the input element. It also needs to set the rounded-start class for Bootstrap 5. But this only fixes the problem when autocomplete is turned off. If autocomplete is turned on the border is set on the autocomplete element so the rounded-left and rounded-start classes need to be set there as well for this to work when autocomplete is on.

Border set on autocomplete element:

Screenshot 2024-11-21 at 8 54 27 AM