-
Notifications
You must be signed in to change notification settings - Fork 183
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
[THES-87] [BpkBottomSheet] implementing component #3108
Conversation
Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser. |
packages/bpk-component-bottom-sheet/src/BpkBottomSheet.module.scss
Outdated
Show resolved
Hide resolved
packages/bpk-component-bottom-sheet/src/BpkBottomSheetInner.tsx
Outdated
Show resolved
Hide resolved
packages/bpk-component-bottom-sheet/src/BpkBottomSheetInner.tsx
Outdated
Show resolved
Hide resolved
packages/bpk-component-bottom-sheet/src/BpkBottomSheetInner.tsx
Outdated
Show resolved
Hide resolved
packages/bpk-component-bottom-sheet/src/BpkBottomSheetInner.tsx
Outdated
Show resolved
Hide resolved
Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser. |
packages/bpk-component-bottom-sheet/src/BpkBottomSheetInner.tsx
Outdated
Show resolved
Hide resolved
id={id} | ||
onClose={handleClose} | ||
closeOnScrimClick={closeOnScrimClick} | ||
containerClassName={getClassName('bpk-bottom-sheet--container')} |
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.
This isn't needed anymore?
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.
containerClassName is for the Scrim so it is still needed
Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser. |
Adding a new component - Bottom Sheet, based on Figma designs. This component is very similar to BpkModal on desktop. On mWeb it has some significant style differences as well as minor functional differences to BpkModal (especially in the header section)
Props:
Default:
Opening and closing animation (mWeb):
https://github.com/Skyscanner/backpack/assets/35368044/0e6a9bb3-33fd-46dd-be20-f0c7700d28bc
With Action in header:
With no header title:
Overflowing content:
Default Desktop:
Desktop wide:
Remember to include the following changes:
[KOA-123][BpkButton] Updating the colour
README.md
(If you have created a new component)README.md