Jump to content

Change field outline colour on product pages

Recommended Posts

Posted (edited)

Hi @tuanphan

Currently on my product pages the fields have a black outline and on click a thick white outline, I have tried to amend both of these things on site style but couldn't find a way to do it. Are you able to help? I have attached screenshots.

1 - Make outline white

2 - Remove thick outline on click

For both desktop and mobile.

Thank you!

Screenshot 2024-02-05 at 10.59.36.png

Screenshot 2024-02-05 at 10.59.46.png

Edited by Hayleighroberts
different infirmation
  • Replies 8
  • Views 1.4k
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Use this CSS code to change to white border

.product-details .variant-option select {
    border-color: white !important;
}

image.png.1ebe5715c65b691515ca94687c69ffa1.png

Use this code to remove white border on click

.product-details .variant-option select {
    border-color: white !important;
    outline-color: transparent !important;
}

image.png.269935a0c7cba638e99fcc1dfc0f431c.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.