Skip to content

Commit

Permalink
using media query to apply hover style for days #202
Browse files Browse the repository at this point in the history
  • Loading branch information
shahabyazdi committed Oct 28, 2023
1 parent 042d302 commit d47da70
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 4.4.1

- Using media query to apply hover style for days. [#202](https://github.com/shahabyazdi/react-multi-date-picker/issues/202#issuecomment-1773860684)

# 4.4.0

- rangeHover prop is now supported in the multiple-range mode. [#234](https://github.com/shahabyazdi/react-multi-date-picker/issues/234)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-multi-date-picker",
"version": "4.4.0",
"version": "4.4.1",
"description": "A simple React datepicker component for working with gregorian, persian, arabic and indian calendars with the ability to select the date by single, multiple, range and multiple range pickers.",
"main": "./build/index.js",
"types": "index.d.ts",
Expand Down
8 changes: 5 additions & 3 deletions src/components/calendar/calendar.css
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,11 @@
border-bottom-right-radius: 15px;
}

.rmdp-day:not(.rmdp-disabled, .rmdp-day-hidden, .rmdp-selected) span:hover {
background-color: var(--rmdp-hover);
color: white;
@media (hover: hover) {
.rmdp-day:not(.rmdp-disabled, .rmdp-day-hidden) span:hover {
background-color: var(--rmdp-hover);
color: white;
}
}

.rmdp-day-picker {
Expand Down

0 comments on commit d47da70

Please sign in to comment.