@@ -2,8 +2,6 @@ import { html, nothing } from 'lit';
22import { property , query , queryAll , state } from 'lit/decorators.js' ;
33import { choose } from 'lit/directives/choose.js' ;
44import { createRef , type Ref , ref } from 'lit/directives/ref.js' ;
5- import { styleMap } from 'lit/directives/style-map.js' ;
6-
75import { addThemingController } from '../../theming/theming-controller.js' ;
86import {
97 addKeybindings ,
@@ -74,6 +72,7 @@ export const focusActiveDate = Symbol();
7472 * @csspart header-title - The header title element of the calendar.
7573 * @csspart header-date - The header date element of the calendar.
7674 * @csspart content - The content element which contains the views and navigation elements of the calendar.
75+ * @csspart content-vertical - The content element which contains the views and navigation elements of the calendar in vertical orientation.
7776 * @csspart navigation - The navigation container element of the calendar.
7877 * @csspart months-navigation - The months navigation button element of the calendar.
7978 * @csspart years-navigation - The years navigation button element of the calendar.
@@ -610,7 +609,7 @@ export default class IgcCalendarComponent extends EventEmitterMixin<
610609 @igcActiveDateChange =${ this . activeDateChanged }
611610 @igcRangePreviewDateChange=${ this . rangePreviewDateChanged }
612611 part="days-view"
613- exportparts="days-row, label, date-inner, week-number-inner, week-number, date, first, last, selected, inactive, hidden, current, weekend, range, special, disabled, single, preview"
612+ exportparts="days-row, label, date-inner, week-number-inner, week-number, date, first, last, selected, inactive, hidden, current, current-vertical, weekend, range, special, disabled, single, preview"
614613 .active=${ this . activeDaysViewIndex === idx }
615614 .activeDate=${ date . native }
616615 .disabledDates=${ this . disabledDates }
@@ -665,15 +664,11 @@ export default class IgcCalendarComponent extends EventEmitterMixin<
665664 protected override render ( ) {
666665 const direction = this . _isDayView && this . orientation === 'horizontal' ;
667666
668- const styles = {
669- display : 'flex' ,
670- flexGrow : 1 ,
671- flexDirection : direction ? 'row' : 'column' ,
672- } ;
667+ const part = direction ? 'content' : 'content content-vertical' ;
673668
674669 return html `
675670 ${ this . renderHeader ( ) }
676- < div ${ ref ( this . contentRef ) } part ="content " style = ${ styleMap ( styles ) } >
671+ < div ${ ref ( this . contentRef ) } part ="${ part } " >
677672 ${ choose ( this . activeView , [
678673 [ 'days' , ( ) => this . renderDaysView ( ) ] ,
679674 [ 'months' , ( ) => this . renderMonthView ( ) ] ,
0 commit comments