SASS Inputs HW
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. tinyboxbecomesocs__input small.- The email field’s inline padding becomes
ocs__input medium, and it keepstype="email"so browsers validate it. - Each field keeps a clear purpose through its placeholder, and an
aria-labelgives it an accessible name.
Challenge
Homework Hack: rebuild the signup form using only OCS input classes. Press Run.
Lines: 1
Characters: 0
UI Output