Skip to content

Commit

Permalink
BREAKING CHANGE: Tremor v4
Browse files Browse the repository at this point in the history
  • Loading branch information
severinlandolt committed Dec 12, 2024
1 parent a7d8bfa commit 4142f28
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
8 changes: 1 addition & 7 deletions src/components/input-elements/DatePicker/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,7 @@ const DatePicker = React.forwardRef<HTMLDivElement, DatePickerProps>((props, ref
handleReset();
}}
>
<XCircleIcon
className={tremorTwMerge(
// common
"h-4 w-4 shrink-0",
"text-tremor-content-subtle",
)}
/>
<XCircleIcon className={tremorTwMerge("text-tremor-content-subtle h-4 w-4 shrink-0")} />
</button>
) : null}
<Transition
Expand Down
2 changes: 1 addition & 1 deletion src/components/input-elements/NumberInput/NumberInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface NumberInputProps

const baseArrowClasses = "flex mx-auto text-tremor-content-subtle";

const enabledArrowClasses = "cursor-pointer hover:text-tremor-content";
const enabledArrowClasses = "cursor-pointer hover:text-tremor-content-default";

const NumberInput = React.forwardRef<HTMLInputElement, NumberInputProps>((props, ref) => {
const { onSubmit, enableStepper = true, disabled, onValueChange, onChange, ...other } = props;
Expand Down
4 changes: 1 addition & 3 deletions src/components/layout-elements/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ const Card = React.forwardRef<HTMLDivElement, CardProps>(
<div
ref={ref}
className={tremorTwMerge(
// common
"rounded-tremor-default relative w-full p-6 text-left ring-1",
"bg-tremor-background-default shadow-tremor-card ring-tremor-ring-default",
"rounded-tremor-default bg-tremor-background-default shadow-tremor-card ring-tremor-ring-default relative w-full p-6 text-left ring-1",
borderColors[decorationColor],
parseDecorationAlignment(decoration),
className,
Expand Down

0 comments on commit 4142f28

Please sign in to comment.