Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from Legacy Stack to InlineStack #12001

Open
mhlozek opened this issue May 14, 2024 · 1 comment
Open

Migrate from Legacy Stack to InlineStack #12001

mhlozek opened this issue May 14, 2024 · 1 comment
Labels
Bug Something is broken and not working as intended in the system. untriaged

Comments

@mhlozek
Copy link

mhlozek commented May 14, 2024

Summary

I would like to migrate from Legacy Stack / Stack Item to InlineStack, but I don't know how to migrate StackItem with fill prop.

There are no "Items" in InlineStack. Should I use a div element with inline style flex-grow: 1 instead?

Expected behavior

No response

Actual behavior

No response

Steps to reproduce

No response

Are you using React components?

None

Polaris version number

No response

Browser

No response

Device

No response

@mhlozek mhlozek added Bug Something is broken and not working as intended in the system. untriaged labels May 14, 2024
@nullndr
Copy link

nullndr commented May 17, 2024

The way I am doing this is using two <InlineStack/>:

<InlineStack align="space-between">
  <div>Foo</div>  
  <InlineStack align="end" gap="200">
    <div>Bar</div>
    <div>Foobar</div>
  </InlineStack>
</InlineStack>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken and not working as intended in the system. untriaged
Projects
None yet
Development

No branches or pull requests

2 participants