diff --git a/src/frontend/src/Components/events/EventsTable.js b/src/frontend/src/Components/events/EventsTable.js index e55376fd..5edd1adc 100644 --- a/src/frontend/src/Components/events/EventsTable.js +++ b/src/frontend/src/Components/events/EventsTable.js @@ -197,7 +197,11 @@ export default function EventsTable(props) { const row = rows[i]; res.push( - routeHandler(row.original)} key={`${row.id}-header-row`}> + { + if (event.key === 'Enter') { + routeHandler(row.original); + } + }} onClick={() => routeHandler(row.original)} key={`${row.id}-header-row`}>

{row.original.route_at}

{row.original.direction_display}

diff --git a/src/frontend/src/Components/events/EventsTable.scss b/src/frontend/src/Components/events/EventsTable.scss index 24e913e0..f7720ff0 100644 --- a/src/frontend/src/Components/events/EventsTable.scss +++ b/src/frontend/src/Components/events/EventsTable.scss @@ -56,6 +56,10 @@ table { } } + tr:focus { + background-color: $BC-Blue-Light; + } + .headerRow { &:hover + tr { background-color: $BC-Blue-Light; @@ -196,4 +200,4 @@ td.next_update .friendly-time-text { margin-top: 12px; display: inline-block; } -} \ No newline at end of file +}