diff --git a/src/components/StationTimeTableRow.tsx b/src/components/StationTimeTableRow.tsx index d3752e26..8b22deef 100644 --- a/src/components/StationTimeTableRow.tsx +++ b/src/components/StationTimeTableRow.tsx @@ -68,8 +68,9 @@ function StationTimeTableRow({ onClick={() => tableRowOnClick(trainNumber, departureDate)} > - - + 0 - ? { - color: 'error.main', - } - : { - color: null, - }, + delayInMinutes > 0 && { + color: 'error.main', + }, ]} > {format(actualTime, 'HH:mm')} diff --git a/src/components/TopNavBar.tsx b/src/components/TopNavBar.tsx index 67e35cdc..05cec206 100644 --- a/src/components/TopNavBar.tsx +++ b/src/components/TopNavBar.tsx @@ -23,10 +23,10 @@ export function TopNavBar() { marginRight: 'auto', display: 'inline-flex', alignItems: 'center', + color: 'inherit', + textDecoration: 'none', }} component={Link} - color="inherit" - style={{ textDecoration: 'none' }} href="/" > - ? ) : ( - onWagonClick(w)} - style={{ + sx={{ display: 'inline-flex', flexDirection: 'column', alignItems: 'center', @@ -229,7 +229,9 @@ function TrainComposition({ margin: 0, padding: 0, backgroundColor: 'transparent', - cursor: 'pointer', + '&.Mui-focusVisible': { + outline: 'revert', + }, }} > @@ -279,7 +281,7 @@ function TrainComposition({ isCommuterTrain={!!train.commuterLineid} /> - + ) )} {trainDirection === TrainDirection.Decreasing ? ( @@ -310,7 +304,7 @@ function TrainComposition({ )} - + {hasStationRow && ( {realTimeTrain && ( - + - + )} {stationMessages && stationMessages[station.shortCode]?.length > 0 && ( diff --git a/src/components/TrainSubNavBar.tsx b/src/components/TrainSubNavBar.tsx index 11cf9f64..14ca4810 100644 --- a/src/components/TrainSubNavBar.tsx +++ b/src/components/TrainSubNavBar.tsx @@ -76,8 +76,9 @@ function TrainSubNavBar({ train }: TrainSubNavBarProps) { {train.trainNumber} )} - - + > )}