Skip to content

Commit

Permalink
feat(buttonGroup): set props for field from default button (#564)
Browse files Browse the repository at this point in the history
* feat(buttonGroup): set props for field from default button

* chore: add css style to storybook

---------

Co-authored-by: Marc Güell Segarra <[email protected]>
  • Loading branch information
ecarreras and mguellsegarra authored Sep 4, 2024
1 parent eaf09f0 commit ef35ccc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .storybook/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -164689,3 +164689,7 @@ div.markdown-typography-edit-content.markdown-typography-rtl {
margin: 0 20px 0 0;
padding: 0 4px 0 0;
}

.ant-btn-compact-first-item {
flex-grow: 1;
}
2 changes: 1 addition & 1 deletion src/widgets/custom/ButtonGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const ButtonGroup = (props: ButtonGroupProps) => {
return null;
} else if (ooui.buttons.length > 1) {
return (
<Field ooui={new FieldOoui({ ...{ ooui } })}>
<Field ooui={new FieldOoui({ ...{ defaultButton } })}>
<Dropdown.Button
disabled={!activated || readOnly}
onClick={onClick}
Expand Down

0 comments on commit ef35ccc

Please sign in to comment.