Form Field: Text Input

Design Complete IMPLEMENTATION PENDING

Text fields let users enter and edit text.

Contributors

@Bronwyn Hawkins (Deactivated)

Related Jira Tickets

https://openedx.atlassian.net/browse/PAR-111


https://www.figma.com/file/eGmDp94FlqEr4iSqy1Uc1K/Paragon-2021?node-id=5234%3A3614

Resources

Variants

Palette and State styles

Dark variant

  • Only use the Dark variant for unvalidated forms

Filled Variant

  • Only use the Filled variant for forms with 1 or 2 text fields

  • Only use the Filled variant for unvalidated forms


Best Practices

Do

Use the Filled variant on forms with only 1 or 2 fields that need to stand out visually

Label optional fields. See: https://www.figma.com/file/eGmDp94FlqEr4iSqy1Uc1K/Paragon-2021?node-id=5234%3A3629

Don't

Label required fields, label optional fields instead

Use the Dark or Filled variants on validated forms

Use the Filled variant on forms with more than 2 fields

Related Components

Β 


Specification

Β 

Β 

Behaviors

Labels

Labels should initially appear within the text field, then animate to the outside on focus.

Accessibility

Focus Management Expectations




Semantics

Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (e.g. the visible text), or is included through alternative means, such as additional text hidden with theΒ .sr-onlyΒ class.

@Jeff Witt (Deactivated)@Adam Butterworth (Deactivated) Follow up here on html markup requirements

Β 

Β