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

Nav Bar || Standard list item component #6

Closed
vikasrohit opened this issue Mar 3, 2016 · 10 comments
Closed

Nav Bar || Standard list item component #6

vikasrohit opened this issue Mar 3, 2016 · 10 comments

Comments

@vikasrohit
Copy link

This is a generic component which will be reused across multiple components.

Component tree

  • std-list-item
    • label(.text)
    • img(.icon)

Requirements:

  • Create a branch off of master and make a PR to master
  • Should support different layouts of text and icon, specifically:
    • icon above label (see example item in quick links item, icon is of 32x32 size)
    • icon in left and text following it (icon should be of 16x16)
    • text in left and icon on the right (icon should be of 16x16)
  • rendering of icon and text should both be configurable so that the user can use any of them or both
@krispenney
Copy link
Contributor

Could I take this one?

@vikasrohit
Copy link
Author

You are all set. Go ahead. 👍

@vikasrohit
Copy link
Author

@K9101 You can check Panel example in the dev branch for reference.

@krispenney
Copy link
Contributor

Ok thanks!
If the icon is on the left or right, should the text and image remain on their respective edges while the item fills it's container (like the panel)?

@vikasrohit
Copy link
Author

@K9101 Sorry, for any confusion, however, the icon and the image are the same. We are calling the image as icon. Now the three layouts (while naming the layouts, I have used text a base to decide the direction) would be like this:

a) dtu (down to up)

|------icon-------|
|------text------- |

b) rtl (right to left)

| icon | text ------------------------|

c) ltr (left to right)

| text ------------------------| icon |

@krispenney
Copy link
Contributor

@vikasrohit Thanks, that makes sense.
I just created a pull request for this issue, let me know if you would like any changes.

@vikasrohit
Copy link
Author

Thanks @K9101 I will review it in couple of hours. Meanwhile you can pick other one from available tasks.

@vikasrohit
Copy link
Author

@K9101 Can you please adhere to ES6 coding style as suggested by React documentation. For reference, please see the updated Panel component in dev branch.

@krispenney
Copy link
Contributor

@vikasrohit sorry for the delay, I just created a pull request with those changes.

@vikasrohit
Copy link
Author

Closing task. Thanks @K9101 for your hard work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants