Skip to content

Commit

Permalink
#3172: Fix out of year boxes hover effects
Browse files Browse the repository at this point in the history
  • Loading branch information
cemalettin-work committed Sep 3, 2020
1 parent a5cc2b0 commit ed3f012
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/src/components/Calendar/Views/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const HeaderBox = styled.div`
justify-content: space-between;
align-items: center;
padding: 10px auto;
margin: 5px auto;
margin: 5px 1rem;
`

const BUTTONS_STYLE = css`
Expand Down
1 change: 1 addition & 0 deletions client/src/components/Calendar/Views/MonthDay.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const MonthDay = ({
return (
<MonthDayBox
selected={selected}
// FIXME: maybe go to daily view when implemented
onClick={onClick}
bgc={countToHeatBgc(dailyEvents.length, { low: 1, mid: 2, color: "red" })}
>
Expand Down
4 changes: 3 additions & 1 deletion client/src/components/Calendar/Views/MonthlyView.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ MonthlyView.defaultProps = {
}

const MonthlyViewBox = styled.div`
outline: 2px solid pink;
border: 2px solid blue;
padding: 10px 5px;
border-radius: 8px;
display: flex;
flex-direction: column;
justify-content: center;
Expand Down
3 changes: 2 additions & 1 deletion client/src/components/Calendar/Views/YearDay.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const YearDay = ({ dailyEvents, eventClick, date, sameYear }) => {
return (
<YearDayBox
onMouseEnter={() => {
setShowTooltip(true)
setShowTooltip(sameYear)
}}
onMouseLeave={() => setShowTooltip(false)}
// FIXME: Add when clicked go to daily view maybe
Expand Down Expand Up @@ -75,6 +75,7 @@ const YearDayBox = styled.div`
position: relative;
&[data-same-year="notSame"] {
border: none;
background-color: transparent;
}
`

Expand Down
4 changes: 3 additions & 1 deletion client/src/components/Calendar/Views/YearlyView.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ YearlyView.defaultProps = {
weekStartsOn: 1
}
const YearlyViewBox = styled.div`
outline: 2px solid pink;
border: 2px solid blue;
padding: 10px 5px;
border-radius: 8px;
display: flex;
flex-direction: column;
justify-content: center;
Expand Down

0 comments on commit ed3f012

Please sign in to comment.