Skip to content

Commit

Permalink
Merge branch 'main' into feat/change-drawerheading-modalheading-defau…
Browse files Browse the repository at this point in the history
…lt-color
  • Loading branch information
franziiiini authored Sep 27, 2024
2 parents 70f9908 + d1aa748 commit 3c9e484
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/four-games-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@localyze-pluto/components": minor
---

[Select]: Fix: set sameWidth prop as default as we used before
5 changes: 3 additions & 2 deletions packages/components/src/components/Select/Select.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const Default = (): JSX.Element => {
);
};

export const SameWidth = (): JSX.Element => {
export const SameWidthAsFalse = (): JSX.Element => {
const selectID = useUID();
const helpTextID = useUID();
return (
Expand All @@ -76,7 +76,8 @@ export const SameWidth = (): JSX.Element => {
id={selectID}
items={selectItems}
name="select"
sameWidth
popoverWidth="150px"
sameWidth={false}
/>
<HelpText id={helpTextID}>Please choose one of the values.</HelpText>
</Box.form>
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const Select = React.forwardRef<HTMLButtonElement, SelectProps>(
setValue,
size = "small",
value,
sameWidth,
sameWidth = true,
popoverWidth,
popoverMaxWidth,
...props
Expand Down

0 comments on commit 3c9e484

Please sign in to comment.