Shopify themes, liquid, logos, and UX
Hi,
I have managed to style my pills for the selected size and colour pills with CSS using the code below.
Any idea how I can do the same for the hover state?
.js.product-form__input input[type="radio"]:checked + label {
background-color: #e9e9e9;
color: #515357;
outline: 1px solid #999;
}
Many thanks!
Solved! Go to the solution
This is an accepted solution.
Hello @D666
replace your code with this code
.js.product-form__input input[type="radio"] + label:hover {
background-color: #e9e9e9;
color: #515357;
outline: 1px solid #999;
}
let me know if it is worked.
This is an accepted solution.
Hi @niraj_patel,
Thank you for replying so quickly!
Your answer is correct but it was not working for me when I posted because...I had placed the style for the :checked state above the style for :hover. 😸
This is an accepted solution.
Hello @D666
replace your code with this code
.js.product-form__input input[type="radio"] + label:hover {
background-color: #e9e9e9;
color: #515357;
outline: 1px solid #999;
}
let me know if it is worked.
This is an accepted solution.
Hi @niraj_patel,
Thank you for replying so quickly!
Your answer is correct but it was not working for me when I posted because...I had placed the style for the :checked state above the style for :hover. 😸
Your welcome😄
Was my reply helpful? Click Like to let me know!
Thanks
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025