I am attempting to remove the padding and adjust the font style to be smaller in the time-picker component of primeng calendar for Angular 7.
<p-calendar [ngModel]="xxx" timeOnly="true" [(hourFormat)]="hourFormat" [(dateFormat)]="timeFormat" [showIcon]="false"
[style]="{'display':'initial'}" [inputStyle]="{'border-width':'1px 1px 1px 1px', 'width':'100%','height':'25px'}"></p-calendar>
However, I am encountering difficulties in applying these changes.
https://i.sstatic.net/Tpoqm.png
This is the CSS class applied to the rendered box:
class="ui-timepicker ui-widget-header ui-corner-all ng-tns-c9-1 ng-star-inserted"
I have tried using the following CSS selectors:
::ng-deep .ui-timepicker .ui-widget-header{
padding:initial;
font-size:smaller;
}
and
::ng-deep .ui-timepicker.ui-widget-header{
padding:initial;
font-size:smaller;
}
Unfortunately, these attempts have been unsuccessful. Any suggestions or guidance would be greatly appreciated. Thank you.