Skip to content

Commit cc097d5

Browse files
committed
more calendar tweaks
1 parent 886daaa commit cc097d5

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/programs/Calendar/CalendarDay/CalendarDay.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export default function CalendarDay({
1919
}: CalendarDayProps) {
2020
const [mainColor, fontColor, primaryColor] = useSystemSettings((s) => [
2121
s.mainColor,
22-
s.secondaryColor,
2322
s.fontColor,
2423
s.primaryColor,
2524
]);

src/programs/Calendar/CalendarDay/styles.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ export const StyledCalendarDay = styled.div<StyledCalendarDayProps>`
1515
flex-direction: column;
1616
background-color: ${(props) =>
1717
props.isSelected ? props.outlineColor : props.backgroundColor};
18-
/* border: ${(p) =>
19-
p.isSelected ? `1px solid ${p.outlineColor}` : undefined}; */
2018
color: ${(props) =>
2119
props.currentMonth
2220
? undefined
@@ -26,9 +24,11 @@ export const StyledCalendarDay = styled.div<StyledCalendarDayProps>`
2624
transition: background-color 0.3s;
2725
:hover {
2826
background-color: ${(props) =>
29-
isLight(props.backgroundColor)
30-
? darken(0.1, props.backgroundColor)
31-
: lighten(0.1, props.backgroundColor)};
27+
props.isSelected
28+
? props.outlineColor
29+
: isLight(props.backgroundColor)
30+
? darken(0.1, props.backgroundColor)
31+
: lighten(0.1, props.backgroundColor)};
3232
}
3333
`;
3434

0 commit comments

Comments
 (0)