Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

💄 Update desktop poll

Luke Vella9ed9c037807b
diff --git a/apps/web/src/components/poll/desktop-poll/participant-row-form.tsx b/apps/web/src/components/poll/desktop-poll/participant-row-form.tsx
index eb1a2740d..36e4c6dda 100644
--- a/apps/web/src/components/poll/desktop-poll/participant-row-form.tsx
+++ b/apps/web/src/components/poll/desktop-poll/participant-row-form.tsx
@@ -57,7 +57,7 @@ const ParticipantRowForm = ({
<tr className={cn("group", className)}>
<td
style={{ minWidth: 235, maxWidth: 235 }}
- className="sticky left-0 z-10 h-12 border-b bg-background px-3 group-[.last-row]:border-b-0"
+ className="sticky left-0 z-10 h-12 border-b border-b-border-muted bg-background px-3 group-[.last-row]:border-b-0"
>
<div className="flex items-center justify-between gap-x-2.5">
<Participant>
@@ -109,7 +109,7 @@ const ParticipantRowForm = ({
return (
<td
key={optionId}
- className="relative h-12 border-b border-l bg-background group-[.last-row]:border-b-0"
+ className="relative h-12 border-b border-b-border-muted border-l bg-background group-[.last-row]:border-b-0"
>
<Controller
control={form.control}
@@ -126,7 +126,7 @@ const ParticipantRowForm = ({
}}
className={cn(
"absolute inset-0 flex cursor-pointer items-center justify-center transition-colors",
- "hover:bg-gray-100 active:bg-gray-200/50 active:ring-1 active:ring-gray-200 active:ring-inset dark:active:bg-gray-700/50 dark:active:ring-gray-700 dark:active:ring-inset dark:hover:bg-gray-800",
+ "hover:bg-gray-50 active:bg-gray-100 active:ring-1 active:ring-gray-200 active:ring-inset dark:active:bg-gray-700/50 dark:active:ring-gray-700 dark:active:ring-inset dark:hover:bg-gray-800",
)}
>
<VoteSelector
@@ -141,7 +141,6 @@ const ParticipantRowForm = ({
</td>
);
})}
- <td className="border-l" />
</tr>
);
};
diff --git a/apps/web/src/components/poll/desktop-poll/participant-row.tsx b/apps/web/src/components/poll/desktop-poll/participant-row.tsx
index 07ab880bf..318da0275 100644
--- a/apps/web/src/components/poll/desktop-poll/participant-row.tsx
+++ b/apps/web/src/components/poll/desktop-poll/participant-row.tsx
@@ -58,7 +58,7 @@ export const ParticipantRowView: React.FunctionComponent<{
>
<td
style={{ minWidth: 235, maxWidth: 235 }}
- className="sticky left-0 z-10 h-12 border-b bg-background px-3 group-[.last-row]:border-b-0"
+ className="sticky left-0 z-10 h-12 border-border-muted border-b bg-background px-3 group-[.last-row]:border-b-0"
>
<div className="flex max-w-full items-center justify-between gap-x-1">
<Participant>
@@ -86,7 +86,7 @@ export const ParticipantRowView: React.FunctionComponent<{
// biome-ignore lint/suspicious/noArrayIndexKey: Fix this later
key={i}
className={cn(
- "h-12 border-b border-l bg-background group-[.last-row]:border-b-0",
+ "h-12 border-b border-b-border-muted border-l bg-background group-[.last-row]:border-b-0",
)}
>
<div className={cn("flex items-center justify-center")}>
diff --git a/apps/web/src/components/poll/desktop-poll/poll-header.tsx b/apps/web/src/components/poll/desktop-poll/poll-header.tsx
index 4106b0c33..1300548ac 100644
--- a/apps/web/src/components/poll/desktop-poll/poll-header.tsx
+++ b/apps/web/src/components/poll/desktop-poll/poll-header.tsx
@@ -86,7 +86,9 @@ const PollHeader = () => {
key={`${group.month} ${group.year}`}
colSpan={group.count}
style={{ height: monthRowHeight }}
- className={cn("sticky top-0 z-10 border-l bg-background text-left")}
+ className={cn(
+ "sticky top-0 z-10 border-b border-l bg-background text-left",
+ )}
>
<div className="sticky right-0 left-[236px] inline-flex h-5 gap-1 px-2 py-0.5 font-medium text-xs uppercase">
<span>{group.month}</span>
@@ -118,7 +120,7 @@ const PollHeader = () => {
top: monthRowHeight,
}}
className={cn(
- "sticky space-y-2 border-t bg-background",
+ "sticky space-y-2 bg-background",
firstOfDay ? "z-20" : "z-10",
{
"border-l": firstOfDay,
diff --git a/packages/tailwind-config/shared-styles.css b/packages/tailwind-config/shared-styles.css
index 5f2e7599d..9d0c95a30 100644
--- a/packages/tailwind-config/shared-styles.css
+++ b/packages/tailwind-config/shared-styles.css
@@ -17,7 +17,7 @@
--menu-item-outline: rgba(0, 0, 0, 0.05);
--border: var(--color-gray-200);
- --border-muted: oklch(0.871 0.006 286.286 / 0.5);
+ --border-muted: var(--color-gray-100);
--input: var(--color-gray-200);
--input-foreground: var(--color-gray-800);
@@ -78,7 +78,7 @@
--sidebar-accent-foreground: #f9fafb;
--border: oklch(0.274 0.006 286.033);
- --border-muted: oklch(0.274 0.006 286.033 / 0.5);
+ --border-muted: var(--color-gray-800);
--input: var(--color-gray-700);
--input-foreground: var(--color-gray-100);