Comments (9)
Taking this
from react-components.
May I clarify the following:
- The parent (whole) navbar component is on flex display so this will be a flex-item
- Will the login state change while on the same page will trigger a page change? I'm thinking if I am to handle the login state change in the component or just initialize it as either logged in or not.
- The user avatar will also use the purple placeholder?
- I see that this uses the std-list-item. Is that something I have to wait for or can I proceed with implementing this I don't think this is necessary since there is no icon for the list items on this component. In that case, can I just use .user-menu-item as class name to avoid conflicts?
from react-components.
Go ahead. 👍
1 Ideally, component (user dropdown) should be independent of its parent (nav bar in this case). It should only behave differently based on the context provide by the parent i.e. it should adjust its width based on space provided by the parent. For mobile (width < 768px), we can always assume this component to reduce its header just to the user avatar and omit the username as depicted in the live specks.
2 Good question. I think for the sake of simplicity and speeding up the development, you can just let the component behave based on the log in state. This state would be changed by external page (e.g. login page or /logout page).
3 Yes, you can. You can also use your profile pic as well. :)
4 Good catch. Yes, you can avoid using std-list-item for now. We can handle that in final fixes.
from react-components.
Thanks, for answering my queries. Another thing: the codebase uses CamelCase in class names of primary components. Do we follow that or use the dash format (.user-dropdown-menu)?
from react-components.
@reynard2007 Basic idea is to have component names in title case (e.g. Panel, StandardListItem etc) while css class names in dash format (e.g. panel-header, panel-body). Only exception to dash format class name is the main css class of the component e.g. FileUploader, Checkbox etc. We are aware that Panel component's main css class is not using title case as of now, we have to fix that.
from react-components.
What are we to do if we have this on minimal width state of the user dropdown. Curently it renders like this on my machine:
from react-components.
I think it is fine. On mobile devices, we would show the dropdown content as inline element in the DOM through the configuration in dropdown component.
Minor changes, as final fixes, can be done even after merging the PR.
from react-components.
@reynard2007 There are conflicts in PR#18, please resolve them to enable us to review the code. Further, it would be really great if you can separate out the PRs for #4 and #8. This would allow us to better track changes per task.
from react-components.
Closing task. Thanks @reynard2007 for your hard work.
from react-components.
Related Issues (20)
- Tooltip || Fix the tooltip rendering with one of parent being relatively positioned
- Tooltip || Fix CSS conflict coming from Dropdown component
- Display title for options of the SelectDropdown
- Remove console errors
- Update Travis CI configuration to allow use of version for components
- Support specific type for input text HOT 1
- Support column layout for RadioGroup component
- Support Dropdown form component
- Validation error for custom validation is not working HOT 1
- Warning: Formsy: isMounted is deprecated. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks. HOT 4
- Warning: Unknown prop `'data-cap'` on <path> tag HOT 2
- TCFormFields.TextInput doesn't update default value from updated prop
- Fix lint HOT 1
- TiledRadioGroup component malfunction for multipleOptions is set false HOT 1
- New form component for skill suggestions HOT 11
- Slider component for Connect project form HOT 1
- isRequired validator doesn't support numeric values HOT 3
- [$75] React Tooltip - Allow the tooltip to persist if mouse is moved out to tooltip itself HOT 1
- MenuNav should use Link component and not anchor tag directly HOT 5
- Tabs Component
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-components.