Picture of Jason Bell
Custom Components Styling
by Jason Bell - Thursday, 18 September 2014, 10:27 PM
 

While digging into the adapt components to learn how to implementing our own custom versions of the mcq and textInput for survey questions, since we do not need the added functionality of the tutor system, and noticed the state information of the checkboxes had multiple divs to represent different states. It's easy to see these are for providing the graphical ui, but is there a particular reason behind having these extra div element instead of directly styling input element with CSS3?  Thanks!

 

Picture of Daryl Hedley
Re: Custom Components Styling
by Daryl Hedley - Friday, 19 September 2014, 9:30 AM
 

Hey Jason,

We use these extra divs so we can style the MCQ in a variety of ways across a lot of different browsers. You don't have to use these if you don't want to as components are what you make of them. CSS3 features are not fully supported across our browser spec as we have to support IE8.

Hope that helps explain.

Daryl