Skip to content

Commit

Permalink
fix: adjustments to tailwind config (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cahllagerfeld authored Oct 23, 2023
1 parent 5c07084 commit d24b001
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/pretty-spoons-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zenml-io/react-component-library": patch
---

minor adjustments to tailwind config
3 changes: 1 addition & 2 deletions src/components/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,11 @@ export const SidebarHeaderTitle = forwardRef<
SidebarHeaderTitle.displayName = "SidebarHeaderTitle";

export type SidebarHeaderProps = HTMLAttributes<HTMLDivElement> & {
title: string;
icon?: ReactNode;
};

export const SidebarHeader = forwardRef<HTMLDivElement, SidebarHeaderProps>(
({ title, icon, children, className, ...rest }, ref) => {
({ icon, children, className, ...rest }, ref) => {
const existingIconClasses = isValidElement(icon) ? icon.props.className || "" : "";

const iconClasses = cn(
Expand Down
3 changes: 2 additions & 1 deletion src/tailwind/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ export const zenmlPlugin = plugin(
},
backgroundImage: {
"gradient-dark":
"linear-gradient(to bottom right, hsl(var(--color-primary-500)), hsl(var(--color-primary-400)))"
"linear-gradient(to bottom right, hsl(var(--color-primary-500)), hsl(var(--color-primary-400)))",
"gradient-light": "linear-gradient(to bottom, hsl(258, 100%, 97%), hsl(0, 100%, 100%))"
},
animation: {
"spin-slow": "spin 2s linear infinite"
Expand Down

0 comments on commit d24b001

Please sign in to comment.