@@ -2,6 +2,7 @@ import React from 'react';
22import cn from 'classnames';
33
44import Flex from './Flex';
5+import AspectRatio from 'components/AspectRatio';
56
67// TODO: make this look like screens
78export default function CheckboxInput({
@@ -35,7 +36,7 @@ export default function CheckboxInput({
3536}) {
3637 return (
3738 <Flex
38− className={className}
39+ className={cn(className, 'mv2')}
3940 row
4041 align="center"
4142 style={{
@@ -44,35 +45,34 @@ export default function CheckboxInput({
4445 cursor: 'not-allowed',
4546 }),
4647 }}>
48+ {/* we totally hide the checkbox itself */}
4749 <Flex.Item
4850 as="input"
4951 {...rest}
50− className={cn(
51− 'b b1 p3 outline-none',
52− {
53− 'bg-white': !disabled,
54− 'bg-gray1': disabled,
55− },
56− {
57− gray4: !focused,
58− black: focused,
59− },
60− {
61− 'b-green3': visiblyPassed,
62− 'b-black': focused && !visiblyPassed,
63− 'b-yellow3': !focused && hintError,
64− 'b-gray3': !focused && !hintError && !visiblyPassed,
65− }
66− )}
52+ className={cn('super-hidden')}
6753 id={name}
6854 name={name}
6955 {...bind}
7056 />
57+ {/* and then display a prettier one in its stead */}
7158 <Flex.Item
59+ flex
7260 as="label"
73− className="f6 ph3 lh-tall us-none"
74− htmlFor={name}
75− flex>
61+ className="f6 mr3 lh-tall us-none clickable flex-row align-center"
62+ htmlFor={name}>
63+ <Flex
64+ justify="center"
65+ align="center"
66+ className={cn('b-black b1 p1 mr3', {
67+ 'bg-black white': data,
68+ 'bg-white black': !data,
69+ })}
70+ style={{
71+ height: '14px',
72+ width: '14px',
73+ }}>
74+ {data && '✓'}
75+ </Flex>
7676 {label}
7777 </Flex.Item>
7878 </Flex>