Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
-left-1
flex
flex-col
gap-px
gap-1
after:absolute
after:left-[0.45rem]
after:left-3
after:top-0
after:z-10
after:h-full
Expand All @@ -55,17 +55,17 @@
first:before:left-0
first:before:h-20
first:before:w-4
first:before:bg-white
first:before:bg-transparent
first:before:content-['']
last:after:absolute
last:after:left-0
last:after:top-[calc(50%+0.25rem)]
last:after:h-20
last:after:w-4
last:after:bg-white
last:after:bg-transparent
last:after:content-['']
first:dark:before:bg-neutral-950
last:dark:after:bg-neutral-950;
first:dark:before:bg-transparent
last:dark:after:bg-transparent;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
gap-1
overflow-hidden
rounded-md
pl-1
text-sm
text-neutral-800
dark:text-neutral-200;

&:not(.active):hover {
/* Apply hover background to the full item width */
@apply bg-neutral-100
@apply bg-neutral-200
dark:bg-neutral-900;

/* Ensure text colors contrast with hover background */
Expand All @@ -32,7 +33,7 @@
}

.progressionIcon {
@apply fill-green-200
@apply fill-green-400
dark:fill-green-300;
}
}
Expand All @@ -48,8 +49,8 @@

.progressionIcon {
@apply shrink-0
fill-neutral-200
stroke-white
fill-neutral-600
stroke-neutral-300
stroke-[4]
dark:fill-neutral-800
dark:stroke-neutral-950;
Expand All @@ -68,7 +69,7 @@

/* On hover, use full-width background on the item (set above) */
&:not(.active):hover {
@apply bg-neutral-100
@apply bg-neutral-200
dark:bg-neutral-900;
}

Expand Down
14 changes: 14 additions & 0 deletions packages/ui-components/src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,17 @@
}

@custom-variant aria-current (&[aria-current="page"]);

* {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@canerakdas cam tailwind styles be used here?

Also, I wonder if we really want to change the scrollbar on this PR. I feel this shouldn't be done on this PR and done in another discussion.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@canerakdas cam tailwind styles be used here?

It should be available, even if these utility classes are not available in tailwind, they can be added like

@apply [scrollbar-width:thin]

scrollbar-color: var(--color-green-600, #417e38)
var(--color-neutral-400, #2c3437); /* thumb color, track color */
scrollbar-width: thin;
}

@media (prefers-color-scheme: dark) {
* {
scrollbar-color: var(--color-green-600, #417e38)
var(--color-neutral-900, #2c3437); /* thumb color, track color */
scrollbar-width: thin;
}
}
Loading