Not able to change the color of selected date and its range #2605
Unanswered
BraveEvidence
asked this question in
Support
Replies: 2 comments
-
@BraveEvidence thanks for your feedback! You can override the /* ./styles.css */
.rdp-root {
--rdp-range_middle-background-color: orange;
} in your JavaScript file, make sure you import the custom styles after the import { DayPicker } from "react-day-picker";
// Make sure react-day-picker/style.css is before your custom style
import "react-day-picker/style.css";
import "./styles.css"; // Include custom styles See this codesandbox: |
Beta Was this translation helpful? Give feedback.
0 replies
-
@gpbl Thanks for the reply, what about the blue color for the selected date, any ideas? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thanks for reporting a bug for DayPicker. Please provide here a brief description of the issue you’ve encountered.
To reproduce
https://codesandbox.io/p/sandbox/daypicker-bug-report-forked-yqxffx
Here is the code
Actual Behavior
I don't know how to change the color of the date which has been picked as well as the range which has been picked
Expected Behavior
Should be able to change color of the date which has been picked as well as the range which has been picked
Screenshots
Check the above screenshot, the background color of the selected date is blue and the range is light blue, how to change this color?
Beta Was this translation helpful? Give feedback.
All reactions