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
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025