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
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024