Giter VIP home page Giter VIP logo

Comments (4)

phanlyhuynh avatar phanlyhuynh commented on June 11, 2024

Hi. Can you assign to me? And let's me know detail about help text, validation styles. Thanks !!!

from neu_ui.

daniel-norris avatar daniel-norris commented on June 11, 2024

Hey @phanlyhuynh sure, thanks! 😊

Validation
I didn't have a specific way in mind but the user should be able to easily add passed and failure validation text and styling to form components. Two goals you want to aim for are

  • (1) simplicity, especially for the user and
  • (2) does it appear to work with the list of components we have currently produced for the UI package

We don't need to show examples in the online style guide with every component but the user shouldn't need to do any additional significant css work or resort to any css hacks to make a form component and help text or validation text flow reasonably well.

A good place to look would be other React component libraries (I listed a few in the other issue you are working #15).

React Bootstrap for instance here just uses some simple React Hooks to determine if the form input passes form.checkValidity() then passes validated as a prop to the Form component and a .was-validated class.

A similar solution would be absolutely fine I think.

Help Text
I'm just using React Bootstrap just as an example again but they have a fairly simple implementation of help text too which might be worthwhile taking a look at here.

As for colour and style for both, I'll leave it up to you.

I'll assign you, thanks again for helping. Let me know if you want some further guidance.

from neu_ui.

daniel-norris avatar daniel-norris commented on June 11, 2024

Hey @phanlyhuynh are you still planning on working this issue or can we open it back up again to other contributors?

from neu_ui.

phanlyhuynh avatar phanlyhuynh commented on June 11, 2024

@daniel-norris Yes. you can open and assign to other contributors. Thanks

from neu_ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.