We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fcc2b83 + 27de959 commit 0db9b43Copy full SHA for 0db9b43
docs-site/src/components/Examples/style.scss
@@ -113,3 +113,16 @@ input {
113
.text-success {
114
color: green;
115
}
116
+
117
+.react-datepicker__day {
118
+ &.highlighted-day {
119
+ background-color: #ccc;
120
+ color: #000;
121
+ border-radius: 0.3rem;
122
123
+ &:not([aria-disabled="true"]):hover {
124
+ background-color: #aaa;
125
126
+ }
127
128
+}
docs-site/src/examples/ts/customDayClassName.tsx
@@ -2,7 +2,7 @@ const CustomDayClassName = () => {
2
const [selectedDate, setSelectedDate] = useState<Date | null>(new Date());
3
4
const getDayClassName = (date: Date): string => {
5
- return date.getDate() === 1 ? "text-success" : "";
+ return date.getDate() === 1 ? "highlighted-day" : "";
6
};
7
8
return (
0 commit comments