Skip to content

Commit

Permalink
fix: hotfix of breadcrumb styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd committed Oct 9, 2023
1 parent fdbbcc8 commit 419f403
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 11 deletions.
11 changes: 8 additions & 3 deletions components/Common/Breadcrumbs/BreadcrumbItem/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
items-center
gap-5
text-sm
font-medium
text-neutral-800
dark:text-neutral-200;
font-medium;

&,
> a,
> a:hover {
@apply text-neutral-800
dark:text-neutral-200;
}

&.visuallyHidden {
@apply hidden;
Expand Down
21 changes: 14 additions & 7 deletions components/Common/Breadcrumbs/BreadcrumbLink/index.module.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
.active {
@apply rounded
bg-green-600
px-2
py-1
font-semibold
text-white;
.link {
&.active {
@apply rounded
bg-green-600
px-2
py-1
font-semibold
text-white;

&:hover {
@apply bg-green-700
text-white;
}
}
}
6 changes: 5 additions & 1 deletion components/Common/Breadcrumbs/BreadcrumbLink/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ const BreadcrumbLink: FC<BreadcrumbLinkProps> = ({
itemProp="item"
itemID={href.toString()}
href={href}
className={classNames({ [styles.active]: active }, props.className)}
className={classNames(
styles.link,
{ [styles.active]: active },
props.className
)}
aria-current={active ? 'page' : undefined}
{...props}
>
Expand Down

0 comments on commit 419f403

Please sign in to comment.