Skip to content

Commit

Permalink
chore: change some accessibility properties
Browse files Browse the repository at this point in the history
  • Loading branch information
tekoiv committed Nov 6, 2023
1 parent c5abdbb commit 7b664c4
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions app/component/LegInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,7 @@ const LegInfo = (
aria-label={`${intl.formatMessage({
id: mode.toLowerCase(),
defaultMessage: 'Vehicle',
})} ${leg.route && leg.route.shortName} ${
capacityTranslation
? intl.formatMessage({
id: capacityTranslation,
defaultMessage: 'Capacity status',
})
: ''
}`}
})} ${leg.route && leg.route.shortName}}`}
>
<span aria-hidden="true">
<RouteNumber
Expand All @@ -86,6 +79,10 @@ const LegInfo = (
<button
className="capacity-icon-container"
onClick={() => setCapacityModalOpen(true)}
aria-label={intl.formatMessage({
id: capacityTranslation,
defaultMessage: 'Capacity status',
})}
>
<Icon
width="1.75"
Expand Down

0 comments on commit 7b664c4

Please sign in to comment.