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

[THES-87] [BpkBottomSheet] implementing component #3108

Merged
merged 21 commits into from
Dec 12, 2023

Conversation

JToporkiewicz
Copy link
Contributor

@JToporkiewicz JToporkiewicz commented Dec 5, 2023

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:
image

Default:
image

Opening and closing animation (mWeb):
https://github.com/Skyscanner/backpack/assets/35368044/0e6a9bb3-33fd-46dd-be20-f0c7700d28bc

With Action in header:
image

With no header title:
image

Overflowing content:
image
image

Default Desktop:
image

Desktop wide:
image

Remember to include the following changes:

  • Ensure the PR title includes the name of the component you are changing so it's clear in the release notes for consumers of the changes in the version e.g [KOA-123][BpkButton] Updating the colour
  • README.md (If you have created a new component)
  • Component README.md
  • Tests
  • Storybook examples created/updated
  • For breaking changes or deprecating components/properties, migration guides added to the description of the PR. If the guide has large changes, consider creating a new Markdown page inside the component's docs folder and link it here

@JToporkiewicz JToporkiewicz marked this pull request as draft December 5, 2023 16:27
@JToporkiewicz JToporkiewicz added the minor Non breaking change label Dec 6, 2023
@JToporkiewicz JToporkiewicz marked this pull request as ready for review December 6, 2023 11:54
Copy link

github-actions bot commented Dec 6, 2023

Browser support

If this is a visual change, make sure you've tested it in multiple browsers.

Generated by 🚫 dangerJS against d41e8fd

Copy link

github-actions bot commented Dec 6, 2023

Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser.

Copy link

github-actions bot commented Dec 6, 2023

Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser.

Copy link

github-actions bot commented Dec 7, 2023

Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser.

Copy link

github-actions bot commented Dec 7, 2023

Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser.

Copy link

Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser.

Copy link

Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser.

README.md Outdated Show resolved Hide resolved
examples/bpk-component-bottom-sheet/examples.tsx Outdated Show resolved Hide resolved
examples/bpk-component-bottom-sheet/examples.tsx Outdated Show resolved Hide resolved
examples/bpk-component-bottom-sheet/examples.tsx Outdated Show resolved Hide resolved
examples/bpk-component-bottom-sheet/examples.tsx Outdated Show resolved Hide resolved
Copy link

Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser.

id={id}
onClose={handleClose}
closeOnScrimClick={closeOnScrimClick}
containerClassName={getClassName('bpk-bottom-sheet--container')}
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link

Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser.

Copy link

Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser.

Copy link

Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser.

Copy link

Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser.

Copy link

Visit https://backpack.github.io/storybook-prs/3108 to see this build running in a browser.

@olliecurtis olliecurtis merged commit 99415a0 into main Dec 12, 2023
9 checks passed
@olliecurtis olliecurtis deleted the bpk-component-bottom-sheet branch December 12, 2023 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Non breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants