Skip to content

Commit

Permalink
change tab button
Browse files Browse the repository at this point in the history
  • Loading branch information
VitalikKarpuk committed Jul 17, 2024
1 parent f2b693f commit 9a06bee
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ui/components/molecules/tabs/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,18 @@
padding-left: 0;
padding-right: 0;
}

.activeBlackButton {
border: 1px solid transparent;
}

.activeBlackButton:hover {
background-color: #1a1a1b;
color: var(--col--light);
}

.inActiveBlackButton:hover {
border: 1px solid #1a1a1b;
background-color: var(--col--gray3);
color: #1a1a1b;
}
3 changes: 3 additions & 0 deletions ui/components/molecules/tabs/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ const Tabs = ({
onTabChange?.(item?.value);
setValue(item?.value);
}}
className={classNames(style.activeBlackButton,{
[style.inActiveBlackButton]: value !== item?.value,
})}
>
{item.title}
</Button>
Expand Down

0 comments on commit 9a06bee

Please sign in to comment.