Hi,
I am adding Shopify Accelerated checkout to my cart using this code:
{%- if additional_checkout_buttons -%}
It works fine most of the times.
The problem is that sometimes, Shopify renders two or more of these HTML sections like I have show with the blue marker.
Any such additional sections are not supposed to be there.
They are also not visible to the visitor probably because the JavaScript code applies the fade-in animation to the first such set and it is not expecting more of them.
However, the still take up space.
This is inside a closed shadow DOM so I can’t just remove them with JavaScript or hide them with CSS.
The attached screenshot is from Chrome if that matters.