Skip to content

Commit

Permalink
Make alert button background red on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
andchiind committed Nov 10, 2023
1 parent aaaffea commit 7c44dcc
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions frontend/src/components/Alerts/FailedMissionAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ const Indent = styled.div`
padding: 0px 9px;
`

const StyledButton = styled(Button)`
:hover {
background-color: #ff9797;
}
`

interface MissionsProps {
missions: Mission[]
}
Expand All @@ -24,10 +30,10 @@ function FailedMission({ missions }: MissionsProps) {
}

return (
<Button as={Typography} onClick={goToMission} variant="ghost" color="secondary">
<StyledButton onClick={goToMission} variant="ghost" color="secondary">
<strong>'{mission.name}'</strong> {TranslateText('failed on robot')}{' '}
<strong>'{mission.robot.name}':</strong> {mission.statusReason}
</Button>
</StyledButton>
)
}

Expand All @@ -40,10 +46,10 @@ function SeveralFailedMissions({ missions }: MissionsProps) {
}

return (
<Button as={Typography} onClick={goToHistory} variant="ghost" color="secondary">
<StyledButton onClick={goToHistory} variant="ghost" color="secondary">
<strong>{missions.length}</strong>{' '}
{' ' + TranslateText("missions failed recently. See 'Mission History' for more information.")}
</Button>
</StyledButton>
)
}

Expand Down

0 comments on commit 7c44dcc

Please sign in to comment.