Skip to content

Commit

Permalink
Make popup calendar _appear_ static/uneditable
Browse files Browse the repository at this point in the history
  • Loading branch information
mileswwatkins committed Nov 27, 2024
1 parent f3c778b commit 87cfcdc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/MapPopup.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,14 @@
padding: 12px;
padding-bottom: 9px;
}

/* Avoid making the calendar appear selectable/editable */
.Map-Popup-calendar .react-datepicker__day {
cursor: default;
}
.Map-Popup-calendar .react-datepicker__day:hover {
background-color: #ffffff;
}
.Map-Popup-calendar .react-datepicker__day--highlighted:hover {
background-color: #3dcc4a;
}
1 change: 1 addition & 0 deletions src/components/MapPopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const MapPopup = ({ location, info }) => {
<DatePicker
inline
fixedHeight
calendarClassName="Map-Popup-calendar"
// Helps with styling enough to be okay with the loss of
// accessibility
disabledKeyboardNavigation
Expand Down

0 comments on commit 87cfcdc

Please sign in to comment.