Hello,
I am trying to recreate this kind of component:
In current Polaris, this can be achieved by using a connectedField. It would be nice of fields would support a connected-field slot to achieve this as well.
I understand that existing Polaris component went too far in complexity, but those use cases are quite common. In regard to all the other limitations with fields, maybe one other option would be to add a new s-label component to give flexibility to the dev (and hence allowing use cases such as inline fields):
<s-stack>
<s-label for="text-field-id">Phone number</s-label>
<s-stack direction="inline">
<PhoneComponent />
<s-text-field fieldId="text-field-id" labelAccessibilityVisibility="hidden" />
</s-stack>
</s-stack>
Shopify absolutely need to find a way to give more flexibility on how we can use forms, the current approach works well for simple use cases but not everything is just a bunch of text fields ![]()
