maxBlockSize doesn’t do anything on <View/> components rendered on the order status page if they have an <Image/> as a child. It never get’s translated to a max-height css property.
The fix for now is to change from <View/> to <BlockLayout/>
Thanks @Lianne! Confirmed it now works. Would you mind looking into something else for me as well?
It seems like background="base" on <View/> components doesn’t reflect the color set in the “Fields and Cards” checkout setting.
For example, if you go to the default Order Status page, “Fields and Cards” is set to white and “Background 2” is set to #F2F2F2. And indeed each of the default sections has a white background. But if I put a <View background="base"/> it renders with #F2F2F2 as the background color instead of white.
Looking into it a bit, it seems like the background-color css property is correctly being set to --x-default-color-background, but in custom UI extensions it resolves to the first value (see below), which is the grayish background color.
Whereas in the default sections, it correctly renders as white, since the first value is undefined.
Long story short, this means that my UI extension can’t have a white background, and therefore doesn’t match the rest of the theme. Would love some help!
Hi @aaron_barbieri ! Glad the maxBlockSize is working for you now!
If you’re trying to match the native sections on the order status page, then the <Card/> component is indeed the one you want to go with. And you’re right, it’s only available for customer account UI extensions. So you’ll need to use <View/> for any extensions on the thank you page.
If you have anymore questions, please open a new thread for them. Thanks!
Hi @Lianne, appreciate the response. I’ll open up a new thread then, because like I mentioned above, the <View/> component does not correctly apply the base color.