We have been playing around with the new Polaris web components and first of all, a big thanks for all the effort put into it.
I found an issue where I believe the s-button incorrectly displays full width.
Code to reproduce:
<s-page>
<s-section>
<s-stack gap="base">
<div>Some content</div>
<s-button variant="primary">Action button</s-button>
</s-stack>
</s-section>
</s-page>
Directly applying a width:fit-content;
to the button fixes the issue. Not sure if I’m missing something but I don’t believe this is the expected behaviour.
Thank you!