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

Multi-Purpose Username/Password Container Component with Error Display and space for third option #74

Open
CarolineHoang opened this issue Nov 4, 2020 · 0 comments

Comments

@CarolineHoang
Copy link
Contributor

CarolineHoang commented Nov 4, 2020

Component Description and Screenshot

Include a brief description of the component here, including what page(s) it will be on, along with a screenshot of the component from Figma.
Description:

Screenshot:

image
(each of the above fields should use the same component just adjusted each time)

Props and State

Note what props will be coming into the component, and what state it will have. Remember to reference React's instructions on how to figure out what state/props should be. Aim to make the component as flexible as possible-- we probably should not be hardcoding in content and instead pass it in as props.

Props: Field type (to change the kind of error displayed accordingly)
State:

  • Editable (this is an enabled/disabled state toggled by a third option)
  • hasError (if true, set string value of errorType and show error message, else hide error message)
  • errorType (error message or code to disambiguate with a function to decide what the value is)

Parents and Children

Parents: Login/Signup/Account Management Container
Children: Username/Password field, error message, change/other option

Styling Notes

While looking at the component in Figma, note any pieces of styling that you might need here by checking out the CSS preview:

/* fonts */
font-family: Roboto;
font-style: normal;
font-weight: 500;

/* colors */
color: #9A9A9A;
background: #FFFFFF;

/* borders and shadows */
border: 2px solid #EC6C52;
border-radius: 5px;
box-shadow: 2px 10px 30px rgba(0, 0, 0, 0.05);

Remember not to copy any hardcoded positioning and size values.

Additional Notes

Are there any icons you will need? Images? Written content? Note that here so that we can get it from Product Design before we start!

@CarolineHoang CarolineHoang changed the title Generate Password Component with the Hidden Errors Multi-Purpose Username/Password Component with Error Display and space for third option Nov 11, 2020
@CarolineHoang CarolineHoang changed the title Multi-Purpose Username/Password Component with Error Display and space for third option Multi-Purpose Username/Password Container Component with Error Display and space for third option Nov 11, 2020
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

1 participant