-
Notifications
You must be signed in to change notification settings - Fork 1
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: Introduce Drawer component #DS-1580 #1836
Conversation
✅ Deploy Preview for spirit-design-system-storybook ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for spirit-design-system ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
15e455e
to
7e0e684
Compare
a602bc8
to
87b58d1
Compare
Here is the URL of the uploaded artifact: https://github.com/lmc-eu/spirit-design-system/actions/runs/12652236827/artifacts/2395700687 |
Here is the URL of the uploaded artifact: https://github.com/lmc-eu/spirit-design-system/actions/runs/12652443176/artifacts/2395757543 |
Here is the URL of the uploaded artifact: https://github.com/lmc-eu/spirit-design-system/actions/runs/12652670830/artifacts/2395821946 |
32a323a
to
078743d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add more examples without close button, without close on backdrop and with long scrollable content.
This can be made using a form to configure (like in Toast).
packages/web-react/src/components/Drawer/demo/DrawerDefault.tsx
Outdated
Show resolved
Hide resolved
packages/web-react/src/components/Drawer/demo/DrawerDefault.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! 👍 I quickly checked the web implementation.
tests/e2e/demo-components-compare.spec.ts-snapshots/drawer-chromium-linux.png
Outdated
Show resolved
Hide resolved
Also, I am considering if we shouldn't point this branch to the integration/header. So we can test if it works in the whole combination. |
Do we add the same animation for opening and closing as we have in |
Here is the URL of the uploaded artifact: https://github.com/lmc-eu/spirit-design-system/actions/runs/12668924346/artifacts/2400721338 |
Here is the URL of the uploaded artifact: https://github.com/lmc-eu/spirit-design-system/actions/runs/12669025106/artifacts/2400758163 |
Here is the URL of the uploaded artifact: https://github.com/lmc-eu/spirit-design-system/actions/runs/12671321005/artifacts/2401431936 |
Sorry, you just hit the moment when the animation didn't work |
Here is the URL of the uploaded artifact: https://github.com/lmc-eu/spirit-design-system/actions/runs/12672358761/artifacts/2401786201 |
added |
Here is the URL of the uploaded artifact: https://github.com/lmc-eu/spirit-design-system/actions/runs/12672609278/artifacts/2401853723 |
59f5eed
to
3c2efb4
Compare
Here is the URL of the uploaded artifact: https://github.com/lmc-eu/spirit-design-system/actions/runs/12672867838/artifacts/2401936074 |
ec773d3
to
9528554
Compare
packages/web-react/src/components/Drawer/__tests__/useDrawerStyleProps.test.ts
Outdated
Show resolved
Hide resolved
packages/web-react/src/components/Drawer/demo/DrawerDefault.tsx
Outdated
Show resolved
Hide resolved
|
||
--#{tokens.$css-variable-prefix}drawer-translate-x: 0%; | ||
|
||
all: unset; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(@adamkudrna) maybe it would be nice to add a reset mixin for this. I assume it is partly the same as in Modal (and HeaderDialog)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean for this line? 👀 Or something like reset.dialog()
?
Here is the URL of the uploaded artifact: https://github.com/lmc-eu/spirit-design-system/actions/runs/12688087808/artifacts/2406469988 |
Here is the URL of the uploaded artifact: https://github.com/lmc-eu/spirit-design-system/actions/runs/12688087808/artifacts/2406587584 |
...mponents/demo-drawer-compare.spec.ts-snapshots/drawer-left-backdrop-click-chromium-linux.png
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! A lot of work you have done 👏
461da8b
to
bab2e02
Compare
Description
Additional context
Issue reference