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

Next stack refactor #482

Merged
merged 3 commits into from
Feb 23, 2024
Merged

Next stack refactor #482

merged 3 commits into from
Feb 23, 2024

Conversation

nickonometry
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added/updated: [Y]
  • Docs have been added/updated: [Y]
  • Does this PR introduce a breaking change? [N]
  • I have linked any related GitHub issues to be closed when this PR is merged? [Y/N]

Describe the new behavior?

Converted stack component to use design tokens. New tokens include:

  • gap
  • height
  • stretch
  • alignment
  • justify
  • wrap

Additional information

A request has come up several times to allow for vertical alignment of child items when used inline. One specific situation this was noticeable was putting two items in an inline stack that have different heights or have margin-block/padding-block applied. To resolve this, the alignment property has been updated to map to the CSS align-items property, and a new justify property has been added to control justify-content. I also added examples/demos to the EJS files to replicate the common scenarios where issues were discovered. The stack should handle all intended use cases now and mimics figmas autolayout functionality 1 to 1

@nickonometry nickonometry added minor Increment the minor version when merged @next labels Feb 22, 2024
@nickonometry nickonometry self-assigned this Feb 22, 2024
@nickonometry nickonometry requested a review from a team as a code owner February 22, 2024 16:53
Copy link

stackblitz bot commented Feb 22, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@DRiFTy17 DRiFTy17 force-pushed the next-stack-refactor branch from 2607827 to dbd54bd Compare February 22, 2024 17:22
@DRiFTy17 DRiFTy17 force-pushed the next-stack-refactor branch from dbd54bd to f5f14a2 Compare February 22, 2024 17:28
src/lib/stack/_core.scss Outdated Show resolved Hide resolved
src/lib/core/styles/tokens/stack/_tokens.scss Outdated Show resolved Hide resolved
src/dev/pages/stack/stack.scss Outdated Show resolved Hide resolved
src/dev/pages/stack/stack.ejs Outdated Show resolved Hide resolved
@DRiFTy17 DRiFTy17 added the skip-release Preserve the current version when merged label Feb 23, 2024
@DRiFTy17 DRiFTy17 merged commit 382af91 into next Feb 23, 2024
9 checks passed
@DRiFTy17 DRiFTy17 deleted the next-stack-refactor branch February 23, 2024 14:57
Copy link
Contributor

🚀 PR was released in v3.0.0-next.20 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged @next prerelease This change relates to a prerelease. skip-release Preserve the current version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants