SASS Toggles HW
1. Popcorn Hack: Fill in the Blanks
- The checkbox on a toggle keeps track of whether it is on or off.
- The slider is the visible part of the toggle that changes color when it is turned on.
- The switch class controls the toggle’s position, size, padding, and alignment.
- The border-radius property makes the slider have rounded edges.
- The
&:beforeclass dictates the white circle of the toggle.
2. Find the Bug! (Completed)
Challenge
Fixed the toggle by adding the missing ocs_toggle-track class and aria-hidden="true" attribute to the track span element.
Lines: 1
Characters: 0
UI Output
3. Customize the Toggle (Completed)
Challenge
Changed the checked toggle track background color from green (#22C55E) to pink (#EC4899).
Lines: 1
Characters: 0
UI Output
4. Homework: Interactive Workspace Customizer (0.92+ Above & Beyond)
Challenge
Interactive control panel featuring 3 custom ocs_toggle switches, a live active-toggle counter, and connected DOM features that update the workspace preview card when flipped.
Lines: 1
Characters: 0
UI Output