-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CheckBox: VR certification fixes (#3895)
Co-authored-by: eniomoura <[email protected]>
- Loading branch information
1 parent
ee52d05
commit f18200f
Showing
19 changed files
with
630 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Box, Checkbox, Flex } from 'gestalt'; | ||
|
||
const noop = () => {}; | ||
|
||
export default function Example() { | ||
return ( | ||
<Box padding={4}> | ||
<Flex direction="column" gap={4} height="100%" width="100%"> | ||
<Checkbox | ||
checked | ||
helperText="Helper Text" | ||
id="Checked sm" | ||
label="Checked" | ||
onChange={noop} | ||
size="sm" | ||
/> | ||
|
||
<Checkbox | ||
checked | ||
helperText="Helper Text" | ||
id="Checked md" | ||
label="Checked" | ||
onChange={noop} | ||
size="md" | ||
/> | ||
</Flex> | ||
</Box> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import { Box, Checkbox, Flex } from 'gestalt'; | ||
|
||
const noop = () => {}; | ||
|
||
export default function Example() { | ||
return ( | ||
<Box padding={4}> | ||
<Flex gap={8} height="100%" width="100%"> | ||
<Flex direction="column" gap={6}> | ||
<Checkbox | ||
checked={false} | ||
disabled | ||
helperText="Helper Text" | ||
id="Disabled sm" | ||
label="Disabled" | ||
onChange={noop} | ||
size="sm" | ||
/> | ||
<Checkbox | ||
checked | ||
disabled | ||
helperText="Helper Text" | ||
id="Disabled Checked sm" | ||
label="Disabled Checked" | ||
onChange={noop} | ||
size="sm" | ||
/> | ||
<Checkbox | ||
disabled | ||
helperText="Helper Text" | ||
id="Disabled indeterminate sm" | ||
indeterminate | ||
label="Disabled indeterminate " | ||
onChange={noop} | ||
size="sm" | ||
/> | ||
</Flex> | ||
<Flex direction="column" gap={6}> | ||
<Checkbox | ||
checked={false} | ||
disabled | ||
helperText="Helper Text" | ||
id="Disabled md" | ||
label="Disabled" | ||
onChange={noop} | ||
size="md" | ||
/> | ||
<Checkbox | ||
checked | ||
disabled | ||
helperText="Helper Text" | ||
id="Disabled Checked md" | ||
label="Disabled Checked" | ||
onChange={noop} | ||
size="md" | ||
/> | ||
<Checkbox | ||
disabled | ||
helperText="Helper Text" | ||
id="Disabled Indeterminate md" | ||
indeterminate | ||
label="Disabled indeterminate" | ||
onChange={noop} | ||
size="md" | ||
/> | ||
</Flex> | ||
</Flex> | ||
</Box> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import { Box, Checkbox, Flex } from 'gestalt'; | ||
|
||
const noop = () => {}; | ||
|
||
export default function Example() { | ||
return ( | ||
<Box padding={4}> | ||
<Flex gap={8} height="100%" width="100%"> | ||
<Flex direction="column" gap={6}> | ||
<Checkbox | ||
checked={false} | ||
errorMessage="Error Message" | ||
helperText="Helper Text" | ||
id="Error sm" | ||
label="Error" | ||
onChange={noop} | ||
size="sm" | ||
/> | ||
<Checkbox | ||
checked | ||
errorMessage="Error Message" | ||
helperText="Helper Text" | ||
id="Error Checked sm" | ||
label="Error Checked" | ||
onChange={noop} | ||
size="sm" | ||
/> | ||
<Checkbox | ||
errorMessage="Error Message" | ||
helperText="Helper Text" | ||
id="Error Indeterminate sm" | ||
indeterminate | ||
label="Error indeterminate" | ||
onChange={noop} | ||
size="sm" | ||
/> | ||
</Flex> | ||
<Flex direction="column" gap={6}> | ||
<Checkbox | ||
checked={false} | ||
errorMessage="Error Message" | ||
helperText="Helper Text" | ||
id="Error md" | ||
label="Error" | ||
onChange={noop} | ||
size="md" | ||
/> | ||
<Checkbox | ||
checked | ||
errorMessage="Error Message" | ||
helperText="Helper Text" | ||
id="Error Checked md" | ||
label="Error Checked" | ||
onChange={noop} | ||
size="md" | ||
/> | ||
<Checkbox | ||
errorMessage="Error Message" | ||
helperText="Helper Text" | ||
id="Error Indeterminate md" | ||
indeterminate | ||
label="Error indeterminate" | ||
onChange={noop} | ||
size="md" | ||
/> | ||
</Flex> | ||
</Flex> | ||
</Box> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { Box, Checkbox, Flex } from 'gestalt'; | ||
|
||
const noop = () => {}; | ||
|
||
export default function Example() { | ||
return ( | ||
<Box padding={4}> | ||
<Flex direction="column" gap={4} height="100%" width="100%"> | ||
<Checkbox | ||
checked | ||
helperText="Helper Text" | ||
id="Indeterminate sm" | ||
indeterminate | ||
label="Indeterminate" | ||
onChange={noop} | ||
size="sm" | ||
/> | ||
<Checkbox | ||
checked | ||
helperText="Helper Text" | ||
id="Indeterminate md" | ||
indeterminate | ||
label="Indeterminate" | ||
onChange={noop} | ||
size="md" | ||
/> | ||
</Flex> | ||
</Box> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Box, Checkbox, Flex } from 'gestalt'; | ||
|
||
const noop = () => {}; | ||
|
||
export default function Example() { | ||
return ( | ||
<Box padding={4}> | ||
<Flex direction="column" gap={4} height="100%" width="100%"> | ||
<Checkbox | ||
checked={false} | ||
helperText="Helper Text" | ||
id="Unchecked sm" | ||
label="Unchecked" | ||
onChange={noop} | ||
size="sm" | ||
/> | ||
<Checkbox | ||
checked={false} | ||
helperText="Helper Text" | ||
id="Unchecked md" | ||
label="Unchecked" | ||
onChange={noop} | ||
size="md" | ||
/> | ||
</Flex> | ||
</Box> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.