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: add DropdownButton #804

Merged
merged 5 commits into from
Jan 27, 2022
Merged

feat: add DropdownButton #804

merged 5 commits into from
Jan 27, 2022

Conversation

dierat
Copy link
Contributor

@dierat dierat commented Jan 24, 2022

Summary:

Clubhouse ticket: https://app.shortcut.com/czi-edu/story/169593/dropdownbutton-move-to-eds
DropdownButton in traject: https://github.com/FB-PLP/traject/tree/c5e16483f7e199696b7dc32ed6e4350428edc6eb/app/assets/javascripts/v2/core/EDSCandidates/DropdownButton

Copies the DropdownButton component from traject. Please note we're not pulling over the whole Dropdown component just yet because there are a few changes we want to make to the API first.

DropdownButton component in storybook

Test Plan:

  • Manually tested the component in storybook
  • Verified the snapshot test output looks right
  • Manually tested the component in traject's Dropdown component in storybook using version 0.5.1-alpha.4

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

size-limit report

Path Size
components 65.44 KB (+1.89% 🔺)
styles 4.38 KB (0%)

@codecov
Copy link

codecov bot commented Jan 24, 2022

Codecov Report

Merging #804 (25ecc58) into main (6403007) will increase coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #804      +/-   ##
==========================================
+ Coverage   95.84%   95.89%   +0.05%     
==========================================
  Files         132      134       +2     
  Lines         938      950      +12     
  Branches      125      125              
==========================================
+ Hits          899      911      +12     
  Misses         39       39              
Impacted Files Coverage Δ
src/DropdownButton/DropdownButton.stories.tsx 100.00% <0.00%> (ø)
src/DropdownButton/DropdownButton.tsx 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6403007...25ecc58. Read the comment docs.

@dierat dierat force-pushed the diedra/dropdown-button/add branch from c4779a3 to 5975ba1 Compare January 24, 2022 21:51
@dierat dierat marked this pull request as ready for review January 25, 2022 19:02
@dierat dierat requested a review from a team January 25, 2022 19:02
@@ -2,6 +2,7 @@ export { default as Banner } from "./Banner";
export { default as Button } from "./Button";
export { default as Checkbox } from "./Checkbox";
export { default as ClickableStyle } from "./ClickableStyle";
export { default as DropdownButton } from "./ClickableStyle";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Lol wait one sec

@@ -1,6 +1,6 @@
{
"name": "@chanzuckerberg/eds-components",
"version": "0.5.0",
"version": "0.5.1-alpha.3",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

uh wait I need to remove this

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

size-limit report

Path Size
components 65.44 KB (+1.9% 🔺)
styles 4.38 KB (0%)

Copy link
Contributor

@ahuth ahuth left a comment

Choose a reason for hiding this comment

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

LGTM 🤘

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

size-limit report

Path Size
components 66.66 KB (+1.87% 🔺)
styles 4.44 KB (0%)

@dierat dierat merged commit 8b2d49f into main Jan 27, 2022
@dierat dierat deleted the diedra/dropdown-button/add branch January 27, 2022 15:53
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