@@ -2,6 +2,7 @@ import React from 'react';
2import cn from 'classnames';
2import cn from 'classnames';
4import Flex from './Flex';
4import Flex from './Flex';
5+import AspectRatio from 'components/AspectRatio';
6// TODO: make this look like screens
7// TODO: make this look like screens
7export default function CheckboxInput({
8export default function CheckboxInput({
@@ -35,7 +36,7 @@ export default function CheckboxInput({
38− className={className}
39+ className={cn(className, 'mv2')}
40 align="center"
41 align="center"
@@ -44,35 +45,34 @@ export default function CheckboxInput({
44 cursor: 'not-allowed',
45 cursor: 'not-allowed',
48+ {/* we totally hide the checkbox itself */}
47 <Flex.Item
49 <Flex.Item
48 as="input"
50 as="input"
50− className={cn(
52+ className={cn('super-hidden')}
51− 'b b1 p3 outline-none',
53− 'bg-white': !disabled,
54− 'bg-gray1': disabled,
61− 'b-green3': visiblyPassed,
62− 'b-black': focused && !visiblyPassed,
63− 'b-yellow3': !focused && hintError,
64− 'b-gray3': !focused && !hintError && !visiblyPassed,
68 name={name}
54 name={name}
57+ {/* and then display a prettier one in its stead */}
71 <Flex.Item
58 <Flex.Item
72 as="label"
60 as="label"
73− className="f6 ph3 lh-tall us-none"
61+ className="f6 mr3 lh-tall us-none clickable flex-row align-center"
74− htmlFor={name}
62+ htmlFor={name}>
66+ className={cn('b-black b1 p1 mr3', {
67+ 'bg-black white': data,
68+ 'bg-white black': !data,
77 </Flex.Item>
77 </Flex.Item>