I've implemented a table in my component:
<table className={classes.vehicleStatusTable}>
<thead>
<tr>
<th>MILEAGE</th>
<th>TREAD <FontAwesomeIcon icon={faEye}/></th>
<th>PRESSURE <FontAwesomeIcon icon={faEye}/></th>
<th>CLEAN</th>
</tr>
</thead>
<tbody>
<tr>
<td><span className={classes.unknown}>Unknown</span></td>
<td><HealthDot value={0} healthRange={null} size='large' /></td>
<td><HealthDot value={0} healthRange={null} size='large' /></td>
<td><HealthDot value={0} healthRange={null} size='large' /></td>
</tr>
</tbody>
</table>
Here's the applicable style in my styles file:
vehicleStatusTable: {
width: '600px',
'& thead': {
'& tr': {
'& th': {
fontWeight: 'normal',
textAlign: 'center'
}
}
},
'& tbody': {
'& tr': {
'& td': {
textAlign: 'center'
}
}
}
}
The 'center' alignment is appropriate for all of the columns except for the first one.
I've tried several different things to force the first column's alignment to be left
but none work. Any ideas how I can fix this?