Problem/Motivation
Olivero: autofill background in primary search block is not matching standard color.
Attaching a screen recording for reference.
Steps to reproduce
When we have searched for any keyword and when we search for any similar keyword then the suggestions come. and when we select any of suggestions then it the input field background-color is odd (not as per design).
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #30 | safari.mov | 4.69 MB | bnjmnm |
| #30 | firefox.mov | 1.21 MB | bnjmnm |
| #29 | after-screenshot.png | 139.7 KB | guru2023 |
| #29 | before-screenshot.png | 118.93 KB | guru2023 |
| #25 | 3224388-after-patch.mov | 1.02 MB | nayana_mvr |
Comments
Comment #2
gauravvvv commentedI have added a patch please review.
adding after patch screen recording for reference.
Comment #3
gauravvvv commentedComment #4
gauravvvv commentedComment #5
ranjith_kumar_k_u commentedApplied the last patch and it works fine

Before patch
After patch

Comment #6
mherchelComment #7
xjmIt's not actually an alignment error, but with the wrong color it looks like one. Pretty noticeable too. Setting as normal.
Comment #8
mherchelWhat are the steps to reproduce this bug? I'm unable to reproduce.
Comment #9
gauravvvv commentedThis is reproducible when we select any autofill input.
https://tugboat-aqrmztryfqsezpvnghut1cszck2wwasr.tugboat.qa/ Search any keyword and back to homepage again and click on the input field, select the suggestions listed below to input box, you will see the background of input box and color or input is changed.
Adding a video for same.
Comment #10
mherchelThe movie definitely helps. Chrome isn't giving me the autofill option. I'll see if I can get that working.
Comment #11
chetanbharambe commentedHi @mherchel,
This is reproducible when we select any autofill input.
Verified and tested patch #4.
Patch applied successfully and looks good to me.
Testing Steps:
# Goto: Appearance: Set Olivero theme
# Goto: search keyword
# Search any keyword and press enter
# Repeat this 2-3 times with different keywords
# Again go to the search keyword
# Select any keyword which is listed below the input box.
# User will see the background of the input box and color.
Expected Results:
# Autofill background in primary search block should be matching with standard color.
Actual Results:
# Autofill background in primary search block is not matching standard color.
Please refer attached screenshots.
Looks good to me.
Can be a move to RTBC.
Comment #12
mherchelI still need to look at this and reproduce it. One thing that I see is that we're using
-webkit-prefixed properties. I'd also like to see if this happens (and is fixed) in other browsers.Comment #13
gauravvvv commentedAdded after patch screenshots for Safari and Firefox browser.

Safari
Firefox

Comment #14
vikashsoni commentedApplied patch #4 working fine and applied successfully
After patch autofill background in primary search block is matching standard color
Thanks for the patch
for ref sharing screenshot ......
Comment #17
yashingole commentedComment #18
yashingole commentedVerified and tested patch #4 on Drupal 9.5.x-dev. Patch applied successfully and looks good to me.
Testing steps:
1. Goto: Appearance: Set Olivero theme
2. Goto: search keyword
3. Search any keyword
4. Repeat the search for different keywords
5. Again go to the search keyword
6. Select the suggested or previous input keyword.
7. Observe that color changes
8. Apply patch #4
9. Color does not change
Testing Result:
1. Search bar color does not change when selecting the keyword.
Screenshots are attached for reference:
Can be move to RTBC
Comment #19
quietone commentedThere are three sets of screenshots here on the same patch. A patch on Drupal 9.3.x which is not a development branch. Therefor, credit has been removed per How is credit granted for Drupal core issues.
#12 points out that some testing needs to be done. The issue summary mentions a recording but it is not in the IS. Adding tag for an IS update.
Comment #21
gauravvvv commentedRe-rolled patch #4, for d10. As it's no longer applies to D10. Please review.
Also replaced
-webkit-box-shadowwithbox-shadow.Comment #22
Shubham Sharma 77 commentedVerified and tested by applying the patch #21. There is some issue with border-color autofill.
I have added a patch please review it.
For ref sharing screenshots...
Comment #23
smustgrave commentedIssue summary update still needs to happen per #19
Comment #24
gauravvvv commentedI have added the screen recording. Also updated the steps to reproduce in issue summary. Please review
Comment #25
nayana_mvr commentedVerified the patch #22 and tested it on Drupal version 10.1.x. The patch works fine and I have added the before and after screen recordings for reference.
Comment #26
smustgrave commentedSo my only question is
1. Should the font be fixed too
2. are we avoiding webkit?
If no to both +1 from me.
Comment #27
guru2023 commentedComment #28
guru2023 commentedComment #29
guru2023 commentedI have tested patch comment #22 And it worked fine for me. Please see attached before and after screenshot.
Comment #30
bnjmnmWorth noting that Chrome disables autofill, but I tested this in Safari and Firefox using the issue summary steps to reproduce and could not make the bug occur. This was on an Umami install of Drupal 10.1.x. Perhaps there is additional config that is needed to reproduce that other people on this issue happened to have?
Comment #31
andy-blumI was only able to get an autofill box on firefox, and there was no background color issue. Moving this to postponed until we can get some reproducible results.
Comment #33
smustgrave commentedJust following up if additional steps can be provided, else we could probably close this one out.
Comment #34
smustgrave commentedSince there's been no follow up going to close out. If still a bug can always be reopened.