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

dropdown initial look #9

Closed
wants to merge 8 commits into from
Closed

Conversation

armen5
Copy link
Contributor

@armen5 armen5 commented Oct 16, 2020

Screenshot from 2020-10-16 14-59-07
Screenshot from 2020-10-16 14-59-11
Screenshot from 2020-10-16 14-59-14
This is the initial look for Dropdown,here are photos, just colors I think aren't good, but I pick them as given in figma.

@AVRahul AVRahul added adding-component enhancement New feature or request labels Oct 16, 2020
@armen5 armen5 linked an issue Oct 19, 2020 that may be closed by this pull request
@armen5 armen5 requested a review from AVRahul as a code owner October 19, 2020 10:52
@S-ayanide
Copy link
Contributor

Can you please resolve the conflicts and also update your branch to the latest which has Kubera Portal and Kuber Core themes too. Also, update your stories accordingly.

package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/core/DropdownCard/Dropdown/Dropdown.tsx Outdated Show resolved Hide resolved
Signed-off-by: armen5 <[email protected]>
Signed-off-by: armen5 <[email protected]>
@codesniffy codesniffy bot added the size/L label Oct 23, 2020
const showDropdown = Boolean(anchorElement) ? classes.show : classes.hide;
return (
<div className={classes.root} data-id="dropdownElement">
<ButtonFilled
Copy link
Contributor

Choose a reason for hiding this comment

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

button to open the menu shouldn't be part of the component...because we have the component in header and all where there is no button

@armen5
Copy link
Contributor Author

armen5 commented Nov 4, 2020

Screenshot from 2020-11-04 15-04-37
Screenshot from 2020-11-04 15-04-41
Screenshot from 2020-11-04 15-04-44
Screenshot from 2020-11-04 15-04-46
Screenshot from 2020-11-04 15-05-20

@armen5
Copy link
Contributor Author

armen5 commented Nov 4, 2020

@S-ayanide @arkajyotiMukherjee @AVRahul I removed button from component as suggested Arko in his last comment, but in that case I have to add it into stories to pass anchorEl value to component to show dropdown in the right place,where the click was made,but for that I needed usestate in stories but couldn't made it work correctly,if I'm in wrong way please give me suggestion or maybe this is ok as if we use this component in page where we use useState, we will be able pass anchorEl and I think it will work correctly,but for now I wasn't able to show it in storybook,the screens are new but code doesn't include button

@arkajyotiMukherjee
Copy link
Contributor

useState is possible in stories...check RadioButton component @armen5

Signed-off-by: armen5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CC: DropDown
4 participants