Skip to content

Commit

Permalink
✨ (dropdownComponent/index.tsx): update dropdownComponent to change t…
Browse files Browse the repository at this point in the history
…ext color on hover for better user experience

📝 (types/components/index.ts): add name property to DropDownComponent type for better component customization
  • Loading branch information
Cristhianzl committed Oct 24, 2024
1 parent afe9916 commit c9ec2c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/src/components/dropdownComponent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ export default function Dropdown({
<ForwardedIconComponent
name="ChevronsUpDown"
className={cn(
"ml-2 h-4 w-4 shrink-0 text-foreground",
disabled ? "text-placeholder" : "text-foreground",
"text-placeholder ml-2 h-4 w-4 shrink-0",
disabled ? "hover:text-placeholder" : "hover:text-foreground",
)}
/>
</Button>
Expand Down
1 change: 1 addition & 0 deletions src/frontend/src/types/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export type DropDownComponent = {
editNode?: boolean;
id?: string;
children?: ReactNode;
name?: string;
};
export type ParameterComponentType = {
selected?: boolean;
Expand Down

0 comments on commit c9ec2c5

Please sign in to comment.