-
-
Notifications
You must be signed in to change notification settings - Fork 188
feat(navbar): refactor navbar to support horizontal nav item placement and more #228
feat(navbar): refactor navbar to support horizontal nav item placement and more #228
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you explain these changes a little bit more? I'm conflicted whether or not they are necessary. This definitely gives us a more flexible design, however, I'm not sure if that is something that we want. Since we know that our Navbar is always going to have some sort of brand, some sort of search then will have elements to the right of the Brand, and to the right of Search. If that is the case, then it seems like the original design ensures that the user of the component always gets the elements in the right place.
@jackcmeyer I don't think they are necessary but I think considering the original layouts can still be applied, the issue is resolved and now there are new positioning possibilities it gives the framework user more freedom. |
nested array items arent displaying the correct code preview in storybook, possible bug fix #228
I'm not sure if this is a storybook bug or this is solvable with a feature but the children property in LinkList items aren't rendering the correct code preview. When I comment out the link list, everything renders correctly so I'm not sure if anyone knows of a workaround, if I get some extra time I'll create a reproducible example and open a new issue in storybook repo considering I didn't find anything related. I added a new custom example and refactored the brand component into an icon and a header component to support horizontal positioning, improve reusability and separation of concerns. In hospital environments, a colour preference for “whiteness” or pale I also suggested a change in the dark color, reducing brightness and saturation to cause less eye strain while maintaining readibility. |
fix tests, refactor brand component into icon and header to support horizontal positioning, improve reusability and separation of concerns, add new custom example fix #228
@ocBruno could we make the text of the nav links match the color of the brand and then be their current color when they are hovered over? Plus, can the search bar remain to the left? Can you provide a storybook example of content in the nav bar being justified to the right? I'd like to see a navbar that is like
Where i1 and i2 are some icon such as a settings gear and profile icon. |
Hey @jackcmeyer, thanks for the feedback once again. As in maintaining the search bar to the left do you mean in the provided example or in one of the existing examples? I'm not sure how we would go about adding the color according to the brand considering there could be some color or contrast conflicts. I think a good alternative is using the dark variant and letting the user customize any custom colors using css. Also was wondering if we should make user-select: none; default to the nav item components. |
@ocBruno Sorry, I meant the search bar to the right |
change test naming convention, suggest removal of 2 tests and refactor one into two. Add margins to navbar stories and throw search box to the right fix #228
…runo/components into feat/support-search-position
# [0.32.0](v0.31.0...v0.32.0) (2020-01-30) ### Bug Fixes * **navbar:** fix tests, refactor brand component to icon and header, ([91ce73e](91ce73e)), closes [#228](#228) * **navbar:** remove className boilerplates ([1042a66](1042a66)), closes [#228](#228) * **navbar:** remove test story ([c569ce6](c569ce6)), closes [#228](#228) * **navbar:** repeated key warning in navbar items ([a52cff7](a52cff7)), closes [#228](#228) * **navbar:** suggest new default and dark theme color, improve examples ([8ebbcf0](8ebbcf0)), closes [#228](#228) ### Features * **navbar:** add example with icons and support className prop ([4784520](4784520)), closes [#228](#228) * **navbar:** refactor navbar tests ([717a9fc](717a9fc)), closes [#225](#225) * **navbar:** support classname for all components and justify example ([45faf19](45faf19)), closes [#228](#228) * **navbar:** support navbar items horizontal position w array order ([f80382f](f80382f)), closes [#225](#225)
🎉 This PR is included in version 0.32.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
fix #225
Changes proposed in this pull request:
I'm still willing to fix anything in this issue before approval if necessary or increment any changes. Also willing to update the frontend navbar to support these changes after approval!