I'm currently delving into the world of custom SharePoint Web Parts using SharePoint Framework (SPFX) in combination with Angular Elements. One roadblock I've encountered is that when trying to implement ag-Grid, the style definitions for the grid contents don't seem to be applied correctly. Following the guidance provided in this link, my HTML snippet looks like this:
<div class="ag-theme-material">
<ag-grid-angular
style="width: 500px; height: 500px;"
[rowData]="rowData"
[columnDefs]="columnDefs"
>
</ag-grid-angular></div>
However, the output on the rendered page looks different than expected:
https://i.sstatic.net/i8Vnw.png
Despite experimenting with various bundled themes, the issue persists.
Has anyone ventured into using ag-Grid alongside Angular Elements within the SharePoint Framework? Any pointers or suggestions on how to tackle the styling problem would be greatly appreciated!