- Issue created by @ari.saves
- First commit to issue fork.
- Status changed to Fixed
4 months ago 6:08pm 23 August 2024 Automatically closed - issue fixed for 2 weeks with no activity.
Theming jQuery UI's autocomplete widget can be tricky -- I'd like to add a helper class that can be used by any theme to style the autocomplete widget.
Configure the vertex_ai_search module with autocomplete settings turned on; you will get a default jQuery UI autocomplete widget that can be hard to apply CSS to.
Add a small js library in the module's libraries.yml file that contains the following:
$( "#edit-key" ).autocomplete( "widget" ).addClass("vais-autocomplete");
This way, custom styles can be added to the vais-autocomplete class from any theme to override autocomplete widget styles without causing regressions for other jQuery ui widgets that may be on the page.
Automatically closed - issue fixed for 2 weeks with no activity.