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

[Bug]: Regression - childrenGap on Stack with wrap breaks layout #25701

Closed
2 tasks done
stefan-schweiger opened this issue Nov 17, 2022 · 4 comments · Fixed by #25759
Closed
2 tasks done

[Bug]: Regression - childrenGap on Stack with wrap breaks layout #25701

stefan-schweiger opened this issue Nov 17, 2022 · 4 comments · Fixed by #25759
Assignees
Labels
Component: Stack Fluent UI react (v8) Issues about @fluentui/react (v8) Status: Fixed Fixed in some PR Type: Bug 🐛 Type: Regression 🌩🌩 Lightning strikes twice.

Comments

@stefan-schweiger
Copy link

Library

React / v8 (@fluentui/react)

System Info

System:
    OS: macOS 13.0
    CPU: (10) arm64 Apple M1 Pro
    Memory: 1.13 GB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Browsers:
    Chrome: 107.0.5304.110
    Firefox: 100.0.2
    Safari: 16.1

Are you reporting Accessibility issue?

no

Reproduction

https://codesandbox.io/s/laughing-architecture-f92pyg?file=/src/ActionBar.tsx

Bug Description

As far as I can tell since v8.97 using wrap on a Stack with childrenGap breaks the layout and does not apply the correct gap. Sometimes it works on the first page load but if you press reload (in the code sandbox use the one of the integrated preview not your browser reload) it breaks.

Actual Behavior

image

Expected Behavior

A stack with wrap and childrenGap should render correctly:
image

Logs

No response

Requested priority

Normal

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.
@ling1726
Copy link
Member

@ling1726
Copy link
Member

However the only change (according to the changelog) that seems to have gone in is a patch #25052

@sopranopillow do you know if your PR might have caused this regression?

@sopranopillow
Copy link
Contributor

sopranopillow commented Nov 21, 2022

@ling1726 I doubt it, if it was that change both the wrap and no-wrap versions should have the issue. I'll take a look and see if that change caused it.

@sopranopillow
Copy link
Contributor

After looking into it, it does seem to be the root cause. I can take the issue!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Component: Stack Fluent UI react (v8) Issues about @fluentui/react (v8) Status: Fixed Fixed in some PR Type: Bug 🐛 Type: Regression 🌩🌩 Lightning strikes twice.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants