File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
src/programs/Calendar/CalendarDay Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff 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 ] ) ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments