That’s what I figured but can’t pinpoint how to fix it. I know it worked until I posted your Floating button code (both in the browser and on the device), but after I posted your code, it broke something somewhere (I don’t think it’s supposed to, so it’s a mystery).
Here’s the CSS for the background (it’s in a separate Rich Text component that is always visible):
<div class="background"></div>
<pre><span><style>
.background {
position: fixed;
width: 100%;
height: 100%;
top:0;
left: 0;
z-index:-1000;
background: #e8f8f5;
}
Here’s the CSS that controls the Button row (Prev/Next), Action text (Mark completed), Text (Row name), Basic table, Choice components. This Rich text component is visible in all states:
<pre><span><style>
div[id*='screenScrollView'] > div > :nth-of-type(3) {
margin-top: 10px;
z-index: 2;
}
div[id*='screenScrollView'] > div > :nth-of-type(4) {
margin-top: -15px;
z-index: 1;
}
[data-test="app-inline-picker"] {
background: #e8f8f5;
width: 100%;
border-radius: 8px;
height: 40px;
margin-top: -20px;
z-index: 2;
}
[data-test="app-inline-picker"] .current {
background-color: transparent;
box-shadow: none !important;
padding-top: 16px;
padding-bottom: 16px;
border-radius: 0px;
border-bottom: #06baad solid 2px;
}
div[id*='screenScrollView'] > div > :nth-of-type(5) {
margin-bottom: 10px;
}
div[id*='screenScrollView'] > div > :nth-of-type(2) {
position: fixed;
bottom: 88px;
background: white;
z-index: 15;
width: 100%;
box-shadow: 0 -10px 10px rgba(0, 0, 0, 0.05);
padding-top: 12px;
padding-bottom: 12px;
}
div[id*='screenScrollView'] > div > :nth-of-type(1) {
position: fixed;
bottom: 0px;
padding-bottom: 20px;
background: white;
z-index: 15;
align-items: center;
width: 90%;
}
This code controls the Inline list (instructions) and Basic table (Total stitches) components, and is only loaded when “Instructions” is selected:
<pre><span><style>
div[id*='screenScrollView'] > div > :nth-of-type(6) {
background: white;
z-index: 3;
padding-top: 5px;
margin-left: 10px;
margin-right: 10px;
border-top-right-radius: 15px;
border-top-left-radius: 15px;
}
div[id*='screenScrollView'] > div > :nth-of-type(7) {
background: white;
padding-bottom: 20px;
border-bottom-right-radius: 15px;
border-bottom-left-radius: 15px;
z-index: 3;
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
margin-left: 10px;
margin-right: 10px;
margin-bottom: 17%;
}
The result in the browser (ignore the gaps around element 1&2, I know how to fix that) – this works as expected:
When Guides is selected, this code loads:
<pre><span><style>
div[id*='screenScrollView'] > div > :nth-of-type(6) {
background: white;
z-index: 3;
padding-top: 5px;
margin-left: 10px;
margin-right: 10px;
border-top-right-radius: 15px;
border-top-left-radius: 15px;
}
div[id*='screenScrollView'] > div > :nth-of-type(7) {
background: white;
z-index: 3;
margin-left: 10px;
margin-right: 10px;
}
div[id*='screenScrollView'] > div > :nth-of-type(8) {
background: white;
z-index: 3;
margin-left: 10px;
margin-right: 10px;
}
div[id*='screenScrollView'] > div > :nth-of-type(9) {
background: white;
z-index: 3;
margin-left: 10px;
margin-right: 10px;
}
div[id*='screenScrollView'] > div > :nth-of-type(10) {
background: white;
border-bottom-right-radius: 15px;
border-bottom-left-radius: 15px;
z-index: 3;
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
margin-left: 10px;
margin-right: 10px;
margin-bottom: 17%;
padding-bottom: 20px;
}
And this is what the result looks like in the browser – as you can see somehow everything is gone, even the elements that are visible on the “Instructions” or “Notes” tabs
This is code for “Notes” state:
<pre><span><style>
div[id*='screenScrollView'] > div > :nth-of-type(6) {
background: white;
padding-top: 5px;
z-index: 3;
margin-left: 10px;
margin-right: 10px;
border-top-right-radius: 15px;
border-top-left-radius: 15px;
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
padding-bottom: 20px;
}
div[id*='screenScrollView'] > div > :nth-of-type(7) {
background: white;
padding-top: 5px;
z-index: 3;
margin-left: 10px;
margin-right: 10px;
border-bottom-right-radius: 15px;
border-bottom-left-radius: 15px;
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
margin-bottom: 200px;
padding-bottom: 20px;
}
And the result in the browser
Again, at this point, I’ve removed the Floating buttons, but the problem persists. I can see everything properly in the Editor, but not on the device or in the browser preview.