Skip to content

Commit

Permalink
Gh 1980 - Updating date picker dates on hover (#1981)
Browse files Browse the repository at this point in the history
* Updating date UI

* Updating ogi’s issue

* Updating css

* Updating date range css
  • Loading branch information
asaadmahmood authored Dec 14, 2021
1 parent 5f3f65e commit 23a4442
Showing 1 changed file with 28 additions and 7 deletions.
35 changes: 28 additions & 7 deletions webapp/src/components/properties/dateRange/dateRange.scss
Original file line number Diff line number Diff line change
Expand Up @@ -157,41 +157,62 @@
}

.DayPicker-Day {
padding: 0;
align-items: center;
display: flex;
align-items: center;
justify-content: center;
border-radius: unset;
padding: 0;
width: 36px;
height: 36px;
border-radius: 50px;

&::before {
content: unset;
}

&:not(.DayPicker-Day--selected) {
&:hover {
background: rgba(var(--button-bg-rgb), 0.08) !important;
color: rgba(var(--button-bg-rgb), 1) !important;
}
}
}

.DayPicker-Day--today {
background: transparent;
color: #c74655;
}

.DayPicker-Day--start {
border-top-left-radius: 50% !important;
border-bottom-left-radius: 50% !important;
border-top-right-radius: 50% !important;
border-bottom-right-radius: 50% !important;
border-top-right-radius: unset;
border-bottom-right-radius: unset;
}

.DayPicker-Day--end {
border-top-left-radius: unset;
border-bottom-left-radius: unset;
border-top-right-radius: 50% !important;
border-bottom-right-radius: 50% !important;
border-top-left-radius: 50% !important;
border-bottom-left-radius: 50% !important;
}

.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside) {
border-radius: unset;
background-color: rgb(var(--button-bg-rgb));
color: rgba(var(--button-color-rgb), 1);

&:hover {
background-color: rgb(var(--button-bg-rgb)) !important;
}
}

.DayPicker-Day--selected:not(.DayPicker-Day--start):not(.DayPicker-Day--end):not(.DayPicker-Day--outside) {
color: rgb(var(--button-bg-rgb));
background-color: rgba(var(--button-bg-rgb), 0.08);

&:hover {
background-color: rgba(var(--button-bg-rgb), 0.08) !important;
}
}

.DayPicker:not(.DayPicker--interactionDisabled) .DayPicker-Day:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside):hover {
Expand Down

0 comments on commit 23a4442

Please sign in to comment.