- This topic has 13 replies, 3 voices, and was last updated 4 years, 8 months ago by
Ying.
-
AuthorPosts
-
September 28, 2021 at 12:52 pm #1946082
Tim
Hi,
I have added the WooCommerce Product Search Block into my Off Canvas Menu by using a Hook Element.
I have some issues with this search box on mobile view.
As soon as the search box becomes active (when touched), the border-radius changes. How can I remove that?
And, as soon as you start typing, an ugly blue border is added. I want to remove that as well.
Would anyone know how to do those two things?
Thanks in advance!
September 28, 2021 at 12:54 pm #1946086Leo
StaffCustomer SupportHi Tim,
Can you clear and disable your caching plugin so we can take a closer look at where the style is coming from?
Thanks.
September 28, 2021 at 12:58 pm #1946092Tim
Done! 🙂
Also when starting to type something, the blue border changes border-radius again :/
September 28, 2021 at 1:00 pm #1946094Leo
StaffCustomer SupportCan you try the settings under Customizer > Colors > Forms and see if those work for you?
September 28, 2021 at 1:02 pm #1946102Tim
They don’t appear to change anything related to what I described in the first post I’m afraid :/
September 28, 2021 at 1:16 pm #1946111Leo
StaffCustomer SupportHmm super strange. I see the issue on my phone but not when using a mobile simulator which makes it difficult.
Any chance you can disable all plugins except GP Premium and WooCommerce for me to take another look?
Thanks.
September 28, 2021 at 1:37 pm #1946135Tim
I may be able to do that, but not right now seeing as the site is live and we have customers coming in.
🙂
September 28, 2021 at 2:03 pm #1946141Leo
StaffCustomer SupportCan you start a staging site?
Thanks 🙂
September 29, 2021 at 3:41 am #1946606Tim
Found out there are also issues on desktop. A black border is added when starting to type.
I don’t know if it helps but if I select the input in dev tools and tick this box then the black border (which I want to remove) gets added.
September 29, 2021 at 9:58 am #1947229Ying
StaffCustomer SupportHi Tim,
Give this CSS a try:
input#wp-block-search__input-1:focus-visible { outline: none !important; }September 29, 2021 at 12:13 pm #1947370Tim
Thanks, that worked (for desktop)!
However on mobile, there are still issues. Please take a look at the attached screen recording from my iPhone.
This is what happens:
1. Search box looks normal (the grey border is a bit hard to see on the recording, but it looks like it should)
2. As soon as I type the first character, the border radius changes, and the border becomes blue.
3. When the next character is typed in, the border radius goes back to normal, but the blue color persists.
4. When all characters are removed, the border-radius increases again.I really just want the input box to stay the same no matter what (except the change to white BG color when in focus, that’s okay).
September 29, 2021 at 12:17 pm #1947376Leo
StaffCustomer SupportI feel like these issues are not caused by the theme itself.
Can you try activating a Twenty series WP theme and add the same widget to see if the issue exists there as well?
September 30, 2021 at 8:48 am #1948396Tim
We have another site with a fresh WooCommerce install, just changed that theme to Twenty Twenty-One and added the same widget.
The same thing happens there, just different colors. So I guess that means it’s not an issue with GP then?
September 30, 2021 at 9:36 am #1948437Ying
StaffCustomer SupportYes, that’s likely defined by User agent, we can’t really do much about it Unfortuanly.
-
AuthorPosts
- You must be logged in to reply to this topic.