File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,8 @@ const Days: React.FC<Props> = ({
209209 return cn (
210210 baseClass ,
211211 ! activeDateData ( day ) . active ? hoverClassByDay ( day ) : activeDateData ( day ) . className ,
212- isDateDisabled ( day , type ) && "line-through"
212+ isDateDisabled ( day , type ) && "line-through" ,
213+ ( type == "previous" || type == "next" ) && "text-gray-400"
213214 ) ;
214215 } ,
215216 [ activeDateData , hoverClassByDay , isDateDisabled ]
@@ -345,7 +346,7 @@ const Days: React.FC<Props> = ({
345346 type = "button"
346347 key = { index }
347348 disabled = { isDateDisabled ( item , "previous" ) }
348- className = "flex items-center justify-center text-gray-400 h-12 w-12 lg:w-10 lg:h-10"
349+ className = { ` ${ buttonClass ( item , "previous" ) } ` }
349350 onClick = { ( ) => handleClickDay ( item , "previous" ) }
350351 onMouseOver = { ( ) => {
351352 hoverDay ( item , "previous" ) ;
@@ -375,7 +376,7 @@ const Days: React.FC<Props> = ({
375376 type = "button"
376377 key = { index }
377378 disabled = { isDateDisabled ( item , "next" ) }
378- className = "flex items-center justify-center text-gray-400 h-12 w-12 lg:w-10 lg:h-10"
379+ className = { ` ${ buttonClass ( item , "next" ) } ` }
379380 onClick = { ( ) => handleClickDay ( item , "next" ) }
380381 onMouseOver = { ( ) => {
381382 hoverDay ( item , "next" ) ;
You can’t perform that action at this time.
0 commit comments