fix: More Brand color for calendar view (#10252)

This commit is contained in:
Anik Dhabal Babu authored and GitHub committed 2023-07-20 00:32:25 +02:00
1 parent 587d3c1088
commit 47f65bb19f
3 files changed
+3 -3

No files matched your search

@@ -27,7 +27,7 @@ export const EventDuration = ({ event }: { event: PublicEvent }) => {
{event.metadata.multipleDuration.map((duration) => ( {event.metadata.multipleDuration.map((duration) => (
<Badge <Badge
variant="gray" variant="gray"
className={classNames(selectedDuration === duration && "bg-inverted text-inverted")} className={classNames(selectedDuration === duration && "bg-brand-default text-brand")}
size="md" size="md"
key={duration} key={duration}
onClick={() => setSelectedDuration(duration)}>{`${duration} ${t("minute_timeUnit")}`}</Badge> onClick={() => setSelectedDuration(duration)}>{`${duration} ${t("minute_timeUnit")}`}</Badge>
@@ -49,7 +49,7 @@ export function DateValues({ days, containerNavRef }: Props) {
<span <span
className={classNames( className={classNames(
"items-center justify-center p-1", "items-center justify-center p-1",
isToday && "bg-inverted text-inverted rounded-full" isToday && "bg-brand-default text-brand rounded-full"
)}> )}>
{day.format("DD")} {day.format("DD")}
</span> </span>
@@ -101,7 +101,7 @@ function Cell({ isDisabled, topOffsetMinutes, timeSlot }: CellProps) {
{!isDisabled && hoverEventDuration !== 0 && ( {!isDisabled && hoverEventDuration !== 0 && (
<div <div
className={classNames( className={classNames(
"opacity-4 bg-subtle hover:bg-emphasis text-emphasis dark:border-emphasis absolute hidden rounded-[4px] border-[1px] border-gray-900 px-[6px] py-1 text-xs font-semibold leading-5 group-hover:flex group-hover:cursor-pointer", "opacity-4 bg-brand-default hover:bg-brand-default text-brand dark:border-emphasis absolute hidden rounded-[4px] border-[1px] border-gray-900 px-[6px] py-1 text-xs font-semibold leading-5 group-hover:flex group-hover:cursor-pointer",
hoverEventDuration && hoverEventDuration > 15 && "items-start pt-3", hoverEventDuration && hoverEventDuration > 15 && "items-start pt-3",
hoverEventDuration && hoverEventDuration < 15 && "items-center" hoverEventDuration && hoverEventDuration < 15 && "items-center"
)} )}