Howdy, @WaggingLabs!
Thanks for writing in! I tested this on my local computer, an iPhone, and an Android device and was unable to replicate this issue, although I have seen it pop up from time to time. The issue has to do with the fact that the separators are svg
elements placed inside a div
, which is then positioned relatively to the parent Section to create this effect, so what you’re seeing at times is the background of another section showing through in a tiny gap that might appear due to how the browser is rendering the page at that specific screen size. The way we’re positioning these separators eliminates this issue for the most part, but some browser may still render it if there is a sub-pixel rounding issue.
There is one things you can do if you wish to be absolutely certain that you won’t see any gaps. If you inspect the Section in your browser, you’ll see that these dividers are placed into div
elements with class names of x-section-separator-top
and x-section-separator-bottom
. If you implement the following custom CSS into your theme, this should help to ensure that you will never encounter a gap:
.x-section-separator-top {
top: 1px;
}
.x-section-separator-bottom {
bottom: 1px;
}
This works because to position the separators, we use position: absolute;
relative to the Section, and then place the top separator at top: 0;
and the bottom separator at bottom: 0;
and from there, we use CSS transforms to translate the position of the separators to the outside of the section. Using these 1px
alterations will move the sections in and should ensure that they always overlap the section by 1px
, and keep the gap from appearing.
Do keep in mind that in doing this, you will be shaving off a very slight amount of the angled look used on the separators, and it may not appear to go all the way to the edge of the section, so there is a very slight trade-off, but obviously that is likely far less noticeable than a potential gap showing up when you don’t want.
Hopefully this helps to point you in the right direction, cheers!