Problem/Motivation

Autocomplete fields has core styles, which overrides styles of form-element.css.
autocomplete olivero

These core styles comes from /core/modules/system/css/components/autocomplete-loading.module.css.

Proposed resolution

These styles should be kicked and recreated from Olivero, based on figma. So same as other input text fields.

About what icon we may have for autocomplete fields? Well, It's up to you, maybe make sense to follow Claro way and use magnifier icon:
autocomplete claro

Comments

kostyashupenko created an issue. See original summary.

kostyashupenko’s picture

Issue summary: View changes
kostyashupenko’s picture

Issue summary: View changes
kostyashupenko’s picture

Assigned: Unassigned » kostyashupenko
kostyashupenko’s picture

Title: Theme autocomplete input fields » Theme autocomplete input fields and autocomplete dropdown
kostyashupenko’s picture

Issue summary: View changes
kostyashupenko’s picture

Assigned: kostyashupenko » Unassigned

No time today for it :)

kostyashupenko’s picture

Assigned: Unassigned » kostyashupenko
kostyashupenko’s picture

Title: Theme autocomplete input fields and autocomplete dropdown » Theme autocomplete input fields
Assigned: kostyashupenko » Unassigned
Status: Active » Needs review
StatusFileSize
new3.3 MB
new29.92 KB

Autocomplete was styled
Autocomplete

How to test:
1. Set Olivero as administration theme + check checkbox "Use the administration theme when editing or creating content"
1. Add couple tags here /admin/structure/taxonomy/manage/tags/overview
2. Create Article CT node and play with Tags field during creation of your node.

kostyashupenko’s picture

Issue summary: View changes

It's not easy to style autocomplete dropdown, since huge work expected.
We have to override whole this file https://git.drupalcode.org/project/drupal/-/blob/9.1.x/core/assets/vendo... like it was done in Claro. So better to manage it in new task

mherchel’s picture

I'm not sure I like the the magnifying glass as the "non-active" icon. That icon looks to me like it's a traditional search form. I think just a standard ring would be more understood.

That being said, this is what Claro has implemented, which has been [hopefully] thought through.

mherchel’s picture

I'm getting the following when applying the patch. I'm going to try to re-roll it.

error: cannot apply binary patch to 'images/throbber.gif' without full index line
error: images/throbber.gif: patch does not apply
mherchel’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new27.1 KB

This looks good. I re-rolled, and also reformatted the CSS to use indentation and wrap the long multiple background properties (I made sure it passed linting). Patch attached and committing!

mherchel’s picture

Status: Reviewed & tested by the community » Fixed

Committed!

Status: Fixed » Closed (fixed)

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