Currently, I have an Angular 18 application with a page that includes a material date picker component.
When I open the Date Picker, everything displays correctly. However, when I try to change the month using the left/right arrow or the year, the data content overflows outside the component container.
You can view the issue here.
Here is the configuration I am using:
"dependencies": {
"@angular/animations": "^18.1.3",
"@angular/cdk": "^18.0.0",
"@angular/common": "^18.1.3",
"@angular/compiler": "^18.1.3",
"@angular/core": "^18.1.3",
"@angular/fire": "^18.0.1",
...
},
Style declaration in angular.json:
"styles": [
"src/styles.scss",
"@angular/material/prebuilt-themes/indigo-pink.css"
],
styles.css:
/* Global styles and imports */
html,
body {
height: 100%;
}
...
My component with date-time-picker:
<app-titre-page [titre]="'admin.people.ajouter.titre'" [introduction]="'admin.people.ajouter.introduction'"></app-titre-page>
...
CSS:
.full-width {
width: 100%;
max-width: 600px;
margin: 0 auto;
box-sizing: border-box;
}
...
Typescript:
import { Component, OnInit } from '@angular/core';
...
It seems like there may be a CSS conflict causing the issue, but I'm having trouble identifying the specific problem. Can you offer any insights or suggestions?