Skip to content

Commit

Permalink
fix: Clean up radios
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel.carrera committed Sep 19, 2024
1 parent 435c858 commit 63fc6c5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/preview-react/radio/lib/RadioGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const radioGroupStencil = createStencil({
borderRadius: system.shape.x1,
gap: system.space.x2,
padding: `${px2rem(10)} ${system.space.x3} ${system.space.x2}`,
margin: `${calc.negate(system.space.x1)} ${calc.negate(system.space.x3)}`,
margin: `0 ${calc.negate(system.space.x3)}`,
transition: '100ms box-shadow',
width: 'fit-content',
},
Expand Down
2 changes: 1 addition & 1 deletion modules/react/radio/lib/RadioGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Container = styled('div')<Pick<RadioGroupProps, 'error' | 'grow' | 'theme'
boxSizing: 'border-box',
borderRadius: borderRadius.m,
padding: `${space.xxxs} ${space.xs}`,
margin: `-${space.xxxs} -${space.xs}`,
margin: `0 -${space.xs}`,
'& > div': {
margin: `${space.xxs} ${space.zero}`,
alignItems: 'flex-start',
Expand Down
2 changes: 1 addition & 1 deletion modules/react/radio/stories/examples/NoValue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {Subtext} from '@workday/canvas-kit-react/text';
import {useUniqueId} from '@workday/canvas-kit-react/common';

export const NoValue = () => {
const [value, setValue] = React.useState<string | number>(0);
const [value, setValue] = React.useState<string | number>('');

const handleChange = (value: string | number) => {
setValue(value);
Expand Down
2 changes: 1 addition & 1 deletion modules/react/text-area/stories/examples/Grow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const Grow = () => {
};

return (
<FormField>
<FormField grow>
<FormField.Label>Leave a Review foo</FormField.Label>
<FormField.Field>
<FormField.Input as={TextArea} onChange={handleChange} value={value} />
Expand Down

0 comments on commit 63fc6c5

Please sign in to comment.