Skip to content

Commit

Permalink
Merge pull request #435 from Automattic/feat/add-responsiveness-to-ra…
Browse files Browse the repository at this point in the history
…diobox-group

RadioBoxGroup: Make it responsive
  • Loading branch information
djalmaaraujo authored Aug 26, 2024
2 parents 0c28006 + 295652c commit 73dd514
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/system/Form/RadioBoxGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const RadioOption = ( {
cursor: 'pointer',
borderRadius: 2,
minWidth: 220,
flexGrow: 1,
textAlign: 'left',
border: '1px solid',
borderColor: 'input.radio-box.border.default',
Expand Down Expand Up @@ -262,6 +263,7 @@ const RadioBoxGroup = React.forwardRef(
<div
sx={ {
display: 'flex',
flexWrap: 'wrap',
gap: variant === 'chip' ? 1 : 2,
} }
>
Expand Down
2 changes: 1 addition & 1 deletion src/system/Form/RadioBoxGroup.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const Default = () => {
defaultValue={ value }
onChange={ e => setValue( e.target.value ) }
options={ options }
optionWidth="350px"
optionWidth="300px"
/>
);
};
Expand Down

0 comments on commit 73dd514

Please sign in to comment.