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

Fix dramatic layout bug during onboarding #223

Merged
merged 1 commit into from
Mar 18, 2024
Merged

Conversation

MichaelArestad
Copy link
Contributor

When we updated the Text component, our tests didn't catch this one. If you check ?path=/story/screens-onboarding--baseline-saved on a wide viewport, you'll see it no longer wraps. The Text component was changed from block to inline-block allowing it to wrap in certain situations. I added a boolean block prop to Text allowing me to set it as a block. We could probably tackle this with Row, but Row came with a bunch of styles that would need to be overridden.

@MichaelArestad MichaelArestad added bug Classification: Something isn't working skip-release Auto: Preserve the current version when merged patch Auto: Increment the patch version when merged labels Mar 18, 2024
@MichaelArestad MichaelArestad self-assigned this Mar 18, 2024
@MichaelArestad MichaelArestad marked this pull request as ready for review March 18, 2024 20:26
Copy link
Member

@thafryer thafryer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! For the tags, make sure that you use release instead of skip-release. This will ensure a new version is released

@MichaelArestad MichaelArestad added release Auto: Create a `latest` release when merged and removed skip-release Auto: Preserve the current version when merged labels Mar 18, 2024
@@ -1,7 +1,5 @@
import { styled } from "@storybook/theming";

import { Text as BaseText } from "./Text";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was unused.

Copy link
Contributor

@andrewortwein andrewortwein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧱👍🏻

@MichaelArestad MichaelArestad merged commit b83182f into main Mar 18, 2024
13 checks passed
@MichaelArestad MichaelArestad deleted the fix-layout-bug branch March 18, 2024 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Classification: Something isn't working patch Auto: Increment the patch version when merged release Auto: Create a `latest` release when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants