I am trying to add the border on top and bottom in the header of the table, but somehow its not showing it in angular material table.
<table mat-table [dataSource]="dataSource">
<ng-container matColumnDef="id">
<th mat-header-cell *matHeaderCellDef > No. </th>
<td mat-cell *matCellDef="let order"> {{order.id}} </td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
</table>
I use the following CSS
th.mat-header-row {
border-bottom: 2px solid #ffa600;
border-top: 2px solid #ffa600;
}
!!mportantto overrule materials css.border-bottom: 2px solid #ffa600 !important;