@@ -4,7 +4,7 @@ import React from 'react';
44
55import type { DateTime } from '@gravity-ui/date-utils' ;
66import { ChevronLeft , ChevronRight } from '@gravity-ui/icons' ;
7- import { ArrowToggle , Button , useLang } from '@gravity-ui/uikit' ;
7+ import { ArrowToggle , Button , useLang , useMobile } from '@gravity-ui/uikit' ;
88
99import { block } from '../../utils/cn' ;
1010import type { AccessibilityProps , DomProps , FocusEvents , StyleProps } from '../types' ;
@@ -44,6 +44,9 @@ export const CalendarView = React.forwardRef<CalendarInstance, CalendarViewProps
4444 props ,
4545 state ,
4646 ) ;
47+ const isMobile = useMobile ( ) ;
48+
49+ const buttonView = isMobile ? 'outlined' : 'flat' ;
4750
4851 React . useImperativeHandle ( ref , ( ) => ( {
4952 focus ( ) {
@@ -58,7 +61,7 @@ export const CalendarView = React.forwardRef<CalendarInstance, CalendarViewProps
5861 style = { props . style }
5962 >
6063 < div className = { b ( 'header' ) } >
61- < Button { ...modeButtonProps } view = "flat" size = { props . size } >
64+ < Button { ...modeButtonProps } view = { buttonView } size = { props . size } >
6265 { state . availableModes . indexOf ( state . mode ) + 1 ===
6366 state . availableModes . length ? (
6467 < span key = "label" className = { b ( 'mode-label' , b ( `years-label` ) ) } >
@@ -76,12 +79,12 @@ export const CalendarView = React.forwardRef<CalendarInstance, CalendarViewProps
7679 ) }
7780 </ Button >
7881 < div className = { b ( 'controls' ) } >
79- < Button { ...previousButtonProps } view = "flat" size = { props . size } >
82+ < Button { ...previousButtonProps } view = { buttonView } size = { props . size } >
8083 < Button . Icon >
8184 < ChevronLeft className = { b ( 'control-icon' ) } />
8285 </ Button . Icon >
8386 </ Button >
84- < Button { ...nextButtonProps } view = "flat" size = { props . size } >
87+ < Button { ...nextButtonProps } view = { buttonView } size = { props . size } >
8588 < Button . Icon >
8689 < ChevronRight className = { b ( 'control-icon' ) } />
8790 </ Button . Icon >
0 commit comments