What's the best way to display the selected item after a user clicks on it?
<Box py={2}>
<Grid container width="330px">
<Grid container direction="column" item xs align="left">
<Grid item>
<Typography
variant="h6"
className="locationTitle"
display="block"
>
{' '}
{location.name}{' '}
</Typography>
</Grid>
</Grid>
</Grid>
<Typography variant="body" display="block">
{' '}
{location.address.street1}
</Typography>
</Box>
css
.css-1yjo05o:hover{
background-color: lightgray;
}
I managed to get the hover effect working, but I ran into issues with the :focus
and :target
pseudo-classes.