Skip to content

Conversation

@vikasrohit
Copy link

@nlitwin @aselbie

-- Carousel component created
-- It behaves same on both mobile and desktop
-- Swipe is not yet supported for mobile devices
-- Added component for SubNav using the Carousel component.

Please let me know if I can improve the way the Carousel is implemented, I mean can it be made stateless or something else that is the best practice for React.

Further, there is issue with dynamic height elements in the carousel e.g. when text of items can be adjusted to multiple lines, there is flicker in the rendering of prev/next buttons. It works fine for single lined text. I would try to resolve it tomorrow.

vikasrohit added 11 commits March 18, 2016 15:03
-- Added new web pack config for navbar components, to publish it as library
-- Fixed issues with NavBar and SearchBar
-- Carousel component created
-- It behaves same on both mobile and desktop
-- Swipe is not yet supported for mobile devices
-- Added component for SubNav using the Carousel component.
}

validatePagers() {
const pageDownClass = classNames({
Copy link
Contributor

Choose a reason for hiding this comment

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

You can comma separate the arguments, so for something like a class that always needs to be added you can do:

classNames(
  'page-down',
  { hidden: this.state.firstVisibleItem === 0 }
)

Copy link
Author

Choose a reason for hiding this comment

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

👍

@nlitwin
Copy link
Contributor

nlitwin commented Mar 22, 2016

I added a few comments. Overall it lgtm! :bowtie: @aselbie I don't have any experience with ReactDOM, findDOMNode, etc. If you have used these before, can you look over that section?

-- Implemented code review suggestions
@vikasrohit
Copy link
Author

Thanks @nlitwin for the review.
Do you have any suggestions for handling the multi line texts? Basically, it is causing variable width of the elements and causing some problems with my calculation for handling the overflow and showing/hiding the prev/next buttons.

@nlitwin
Copy link
Contributor

nlitwin commented Mar 23, 2016

Hmm regarding the multiline texts, I'm not sure unfortunately :/ I'm going to have to include a multiline ellipsis React module soon, so maybe I'll glean some insights from that!

@vikasrohit
Copy link
Author

Closing PR without merging because it is created against master which is causing multiple change sets to be included in one PR. This branch was created out of dev, so PR would be created against dev.

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.

3 participants