Skip to content

Commit

Permalink
fix(progress): turn twMerge true to fix custom styling (#2668)
Browse files Browse the repository at this point in the history
* fix(progress): turn twMerge true to fix custom styling

* fix(changelog): move changes to patch

* fix: remove stories from changeset

* add Issue number in the changeset

* chore(changeset): remove extra space

* chore(changeset): changeset message

---------

Co-authored-by: Guillaume DE LA RUE <guillaume.de-la-rue@consertotech.pro>
Co-authored-by: աɨռɢӄաօռɢ <wingkwong.code@gmail.com>
  • Loading branch information
3 people committed Apr 21, 2024
1 parent f00ab63 commit 6b96ea9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/short-trainers-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/theme": patch
---

Fix custom slot styling with twMerge set to true (#2153)
12 changes: 12 additions & 0 deletions packages/components/progress/stories/progress.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,15 @@ export const Striped = {
isStriped: true,
},
};

export const CustomSlots = {
render: Template,

args: {
...defaultProps,
classNames: {
indicator: "bg-[#14708A] rounded-[4px]",
track: "bg-red-500 rounded-[4px]",
},
},
};
2 changes: 1 addition & 1 deletion packages/core/theme/src/components/progress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const progress = tv(
],
},
{
twMerge: false,
twMerge: true,
},
);

Expand Down

0 comments on commit 6b96ea9

Please sign in to comment.