@opentripplanner/trip-details 9.0.2 → 9.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/components/fares-v2-table.js +9 -5
- package/esm/components/fares-v2-table.js.map +1 -1
- package/i18n/en-US.yml +1 -0
- package/i18n/fr.yml +1 -0
- package/lib/components/fares-v2-table.d.ts.map +1 -1
- package/lib/components/fares-v2-table.js +5 -5
- package/lib/components/fares-v2-table.js.map +1 -1
- package/package.json +4 -2
- package/src/TripDetails.story.tsx +4 -3
- package/src/__snapshots__/TripDetails.story.tsx.snap +176 -206
- package/src/components/fares-v2-table.tsx +7 -5
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -115,16 +115,18 @@ const FaresV2Table = ({
|
|
|
115
115
|
|
|
116
116
|
const rows = [
|
|
117
117
|
[
|
|
118
|
-
<th key="faretitle" style={{ textAlign: "left" }}>
|
|
118
|
+
<th key="faretitle" style={{ textAlign: "left" }} scope="col">
|
|
119
119
|
<InvisibleA11yLabel>
|
|
120
|
-
<FormattedMessage id="otpUi.TripDetails.
|
|
120
|
+
<FormattedMessage id="otpUi.TripDetails.fareCategory" />
|
|
121
121
|
</InvisibleA11yLabel>
|
|
122
122
|
</th>,
|
|
123
123
|
...transitLegs.map(leg => (
|
|
124
|
-
<th key={leg.tripId}>
|
|
124
|
+
<th key={leg.tripId} scope="col">
|
|
125
|
+
{getLegRouteName(leg)}
|
|
126
|
+
</th>
|
|
125
127
|
)),
|
|
126
128
|
transitLegs.length > 1 ? (
|
|
127
|
-
<th key="total" style={{ textAlign: "right" }}>
|
|
129
|
+
<th key="total" style={{ textAlign: "right" }} scope="col">
|
|
128
130
|
<em>
|
|
129
131
|
<FormattedMessage id="otpUi.TripDetails.total" />
|
|
130
132
|
</em>
|
|
@@ -169,7 +171,7 @@ const FaresV2Table = ({
|
|
|
169
171
|
<>
|
|
170
172
|
{/* Only render the list of fare types once */}
|
|
171
173
|
{index === 0 && (
|
|
172
|
-
<th style={{ textAlign: "left" }}>
|
|
174
|
+
<th style={{ textAlign: "left" }} scope="row">
|
|
173
175
|
<FormattedMessage
|
|
174
176
|
id={`config.fares.media.${descope(medium.id)}`}
|
|
175
177
|
defaultMessage={medium.name}
|