I’ve been trying to customize the iOS motion prompt but I’m having a hard time figuring out what styles are applied by 8th Wall in order to properly override them. The docs provide some CSS selectors, but not all rules or the HTML used, so getting the specificity right is tricky. I’ve been poking around the xrextras Github repo but I haven’t found the relevant HTML or CSS there yet - if I’m just missing it let me know!
I don’t own any iOS or Mac devices so real-time debugging isn’t possible for me. Since this prompt can’t be triggered in the Simulator I’m having to rely on screenshots from non-technical team members, which takes a while.
Attached is the latest iteration I have in my app. It looks like I’m specifically having issues with the sizing of the two buttons. I’ve tried adjusting their padding, making their width auto, setting overflow: visible, and removing the background images, but still the primary CTA on the right is getting cut off on some devices. I’d appreciate any insight into what determines the sizing for these buttons and how I can get these looking good!
This screen is not actually apart of the loading module, it is being injected by our engine at runtime if it detects a user gesture is required to request permissions (like on an iOS device).
Thanks Evan, that’s exactly what I needed! You’re right that with my larger, more spaced-out typography, the box’s width and buttons’ min-widths caused a bit of a traffic jam. I had some extra horizontal padding on the buttons too that wasn’t helping. I set the button widths to auto and that pretty much did the trick, but I also made the button font-size fluid for good measure too.
font-size: clamp(11px, 5vw, 16px);
Thanks for the assist! This could be some great info to have in the docs for customizing the loading screen, but having this forum topic around will help some folks I’m sure.