Skip to content

Commit ab8c3b2

Browse files
lbrdarpeacechen
lbrdar
authored andcommitted
Use transparent background for days that aren't selected (#42)
1 parent e2b421b commit ab8c3b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CalendarDay.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default class CalendarDay extends Component {
111111
//If it is border, the user has to input color for border animation
112112
switch (this.props.daySelectionAnimation.type) {
113113
case 'background':
114-
let dateViewBGColor = this.state.selected ? this.props.daySelectionAnimation.highlightColor : this.props.calendarColor;
114+
let dateViewBGColor = this.state.selected ? this.props.daySelectionAnimation.highlightColor : 'transparent';
115115
dateViewStyle = {backgroundColor: dateViewBGColor};
116116
break;
117117
case 'border':

0 commit comments

Comments
 (0)