Did something change with container queries in s-box?

Has something changed recently with container queries in s-box?

Previously, the following code worked without any issues:
<s-box blockSize="@container (inline-size > 600px) 100px, 70px"></s-box>

However, it recently stopped working.

Now, I have to use a fixed value for it to work:

<s-box blockSize="215px"></s-box>

Was there a recent update that changed how container queries work with s-box, or is this a bug?

Hey @0_0 ,

Thanks for flagging this. The container-query syntax hasn’t changed, and blockSize is still meant to support responsive values. Customer Account currently isn’t passing responsive blockSize values through correctly, which explains why a fixed value works. This looks like a bug, not an intended change.

Responsive values must still be inside an . As a temporary workaround, you can use a responsive grid row:

<s-query-container>
  <s-grid gridTemplateRows="@container (inline-size > 600px) 100px, 70px">
    <s-box><!-- content --></s-box>
  </s-grid>
</s-query-container>

I’m raising this with the relevant team. Could you share your API and @shopify/ui-extensions versions, extension target, full markup, and last-known-working date or version?