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

Fix drop down counter in multi state with single line #503

Merged
merged 13 commits into from
Jan 31, 2022

Conversation

hadasfa
Copy link
Contributor

@hadasfa hadasfa commented Jan 31, 2022

Basic

  • Used plop (npm run plop) to create a new component.
  • PR has description.
  • New component is functional and uses Hooks.
  • Component defines PropTypes.

Style

  • Styles are added to NewComponent.modules.scss file inside of the NewComponent folder.
  • Component uses CSS Modules.
  • Design is compatible with Monday Design System.

Storybook

  • Stories were added to /src/NewComponent/__stories__/NewComponent.stories.js file.
  • Stories include all flows of using the component.

Tests

@hadasfa hadasfa requested a review from sahariko January 31, 2022 11:13
### Close dropdown with multi choose
Pass closeMenuOnSelect to close the multi choose any time an options is chosen.
### Multi line states
Drop down component support multiple options selection in two different state - single line and multiple lines
Copy link
Contributor Author

Choose a reason for hiding this comment

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

replace story to more readable and helpful one about multi state

src/components/Dropdown/__stories__/dropdown.stories.mdx Outdated Show resolved Hide resolved
src/components/Dropdown/__stories__/dropdown.stories.mdx Outdated Show resolved Hide resolved
@@ -0,0 +1,31 @@
import { useEffect, useState } from "react";
Copy link
Contributor

Choose a reason for hiding this comment

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

This file can be simply named hooks, since we're in the context of ValueContainer already.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

change it as in other components (directory of hooks and a file for each hook)

Hadas Farhi and others added 6 commits January 31, 2022 13:41
Co-authored-by: Sahar Brodbeker <saharonb@gmail.com>
Co-authored-by: Sahar Brodbeker <saharonb@gmail.com>
…erHooks.js

Co-authored-by: Sahar Brodbeker <saharonb@gmail.com>
…erHooks.js

Co-authored-by: Sahar Brodbeker <saharonb@gmail.com>
@hadasfa hadasfa merged commit 5c2643f into master Jan 31, 2022
@hadasfa hadasfa deleted the bugs/hadas/dropdown2 branch January 31, 2022 12:03
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