Popcorn Hack: Class-Based Inputs

The inline width/border and the made-up box class are replaced with ocs__input: one large gradient search field and one small plain field.

Challenge

Popcorn Hack: swap the inline styles and box class for OCS input classes. Press Run.

Lines: 1 Characters: 0
UI Output

Homework Hack: Refactor the Signup Form

  • The 500px pink-to-purple field becomes ocs__input large gradient.
  • tinybox becomes ocs__input small.
  • The email field’s inline padding becomes ocs__input medium, and it keeps type="email" so browsers validate it.
  • Each field keeps a clear purpose through its placeholder, and an aria-label gives it an accessible name.

Challenge

Homework Hack: rebuild the signup form using only OCS input classes. Press Run.

Lines: 1 Characters: 0
UI Output