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

Feat step component #240

Merged
merged 5 commits into from
Nov 29, 2024
Merged

Feat step component #240

merged 5 commits into from
Nov 29, 2024

Conversation

ernstmul
Copy link
Contributor

What does this PR do?

Add Step component to V2

Have you read the Contributing Guidelines on issues?

Copy link

changeset-bot bot commented Nov 28, 2024

⚠️ No Changeset found

Latest commit: 1077bec

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

💥 An error occurred when fetching the changed packages and changesets in this PR
Some errors occurred when validating the changesets config:
The package or glob expression "@appwrite.io/pink" specified in the `linked` option does not match any package in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.
The package or glob expression "@appwrite.io/pink-icons" specified in the `linked` option does not match any package in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.
The package or glob expression "@appwrite.io/kitchensink" is specified in the `ignore` option but it is not found in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.
The package or glob expression "@appwrite.io/fonts" is specified in the `ignore` option but it is not found in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.
The package or glob expression "@appwrite.io/pink-design" is specified in the `ignore` option but it is not found in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.

Copy link

vercel bot commented Nov 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pink-design ❌ Failed (Inspect) Nov 29, 2024 0:28am
ui-kitchensink ❌ Failed (Inspect) Nov 29, 2024 0:28am

Copy link

pkg-pr-new bot commented Nov 28, 2024

Open in Stackblitz

npm i https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@240
npm i https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@240

commit: 1077bec

Comment on lines 38 to 107
.stepitem {
padding: 24px 29px;
position: relative;

&::before {
content: '';
position: absolute;
background-color: var(--color-light-neutral-10, #ededf0);
width: 1px;
height: 100%;
margin-left: -30px;
z-index: -2;
}
}

.stepitem.noline::before {
display: none;
}

.stepitem.shortline::before {
height: calc(100% - 50px);
}

.dot-inactive {
width: 7px;
aspect-ratio: 1/1;
border-radius: 50%;
background-color: var(--color-light-neutral-10, #ededf0);
margin-left: -33px;
position: absolute;
}

.dot-active {
width: 16px;
height: 17px;
position: absolute;
margin-left: -37px;
margin-top: -3px;
background-color: var(--color-bgcolor-neutral-primary);
}

.dot-active::before {
content: '';
width: 1px;
height: 80px;
background: linear-gradient(
to bottom,
rgba(253, 54, 110, 0) 0%,
rgba(253, 54, 110, 1) 50%,
rgba(253, 54, 110, 0) 100%
);
margin-left: 7px;
position: absolute;
margin-top: -30px;
z-index: -1;
}

.badge {
position: absolute;
margin-top: -9px;

img {
width: 20px;
height: 20px;
}
}

.badge-margin {
margin-top: 30px;
}
Copy link
Member

Choose a reason for hiding this comment

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

There are a lot of hardcoded pixel sizes... let's try to use the existing sizes variables where possible, and maybe we can ask design if we can round some of the other sizes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah it's a bit of a challenge to get the all the separate dots and lines to exactly match. But I've expressed it into the existing vars as much as possible now!

background-color: var(--color-light-neutral-10, #ededf0);
width: 1px;
height: 100%;
margin-left: -30px;
Copy link
Member

Choose a reason for hiding this comment

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

Let's fututre proof this and use margin-inline and margin-block when possible

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ayy nice, you learn every day! Done!

@ArmanNik ArmanNik merged commit 2e16bc5 into v2 Nov 29, 2024
3 of 6 checks passed
@ArmanNik ArmanNik deleted the feat-step-component branch November 29, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants