File tree 6 files changed +42
-15
lines changed
6 files changed +42
-15
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,10 @@ class OtpRRExample extends Component {
85
85
< Grid >
86
86
< Row className = 'main-row' >
87
87
< Col sm = { 6 } md = { 4 } className = 'sidebar' >
88
- < DefaultMainPanel LegIcon = { MyLegIcon } ModeIcon = { MyModeIcon } />
88
+ { /* <main> Needed for accessibility checks. TODO: Find a better place. */ }
89
+ < main >
90
+ < DefaultMainPanel LegIcon = { MyLegIcon } ModeIcon = { MyModeIcon } />
91
+ </ main >
89
92
</ Col >
90
93
< Col sm = { 6 } md = { 8 } className = 'map-container' >
91
94
< Map />
@@ -97,12 +100,15 @@ class OtpRRExample extends Component {
97
100
98
101
/** mobile view **/
99
102
const mobileView = (
100
- < MobileMain
101
- LegIcon = { MyLegIcon }
102
- ModeIcon = { MyModeIcon }
103
- map = { < Map /> }
104
- title = { < div className = 'navbar-title' > OpenTripPlanner</ div > }
105
- />
103
+ // <main> Needed for accessibility checks. TODO: Find a better place.
104
+ < main >
105
+ < MobileMain
106
+ LegIcon = { MyLegIcon }
107
+ ModeIcon = { MyModeIcon }
108
+ map = { < Map /> }
109
+ title = { < div className = 'navbar-title' > OpenTripPlanner</ div > }
110
+ />
111
+ </ main >
106
112
)
107
113
108
114
/** the main webapp **/
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ class AppMenu extends Component {
33
33
return (
34
34
< div className = 'app-menu' >
35
35
< DropdownButton
36
+ aria-label = 'Application Menu'
36
37
title = { ( < Icon type = 'bars' /> ) }
37
38
noCaret
38
39
className = 'app-menu-button'
Original file line number Diff line number Diff line change @@ -65,7 +65,10 @@ class DateTimePreview extends Component {
65
65
66
66
const button = (
67
67
< div className = 'button-container' >
68
- < Button onClick = { this . props . onClick } >
68
+ < Button
69
+ aria-label = 'Edit departure or arrival time'
70
+ onClick = { this . props . onClick }
71
+ >
69
72
{ editButtonText } { caret && < span > < i className = { `fa fa-caret-${ caret } ` } /> </ span > }
70
73
</ Button >
71
74
</ div >
Original file line number Diff line number Diff line change @@ -35,7 +35,10 @@ class SettingsPreview extends Component {
35
35
let showDot = coreUtils . query . isNotDefaultQuery ( query , config )
36
36
const button = (
37
37
< div className = 'button-container' >
38
- < Button onClick = { this . props . onClick } >
38
+ < Button
39
+ aria-label = { messages . label . replace ( '\n' , ' ' ) }
40
+ onClick = { this . props . onClick }
41
+ >
39
42
{ editButtonText } { caret && < span > < i className = { `fa fa-caret-${ caret } ` } /> </ span > }
40
43
</ Button >
41
44
{ showDot && < div className = 'dot' /> }
Original file line number Diff line number Diff line change 35
35
"@opentripplanner/humanize-distance" : " ^0.0.22" ,
36
36
"@opentripplanner/icons" : " ^1.0.1" ,
37
37
"@opentripplanner/itinerary-body" : " ^1.0.2" ,
38
- "@opentripplanner/location-field" : " ^1.0.1 " ,
38
+ "@opentripplanner/location-field" : " ^1.0.2 " ,
39
39
"@opentripplanner/location-icon" : " ^1.0.0" ,
40
40
"@opentripplanner/park-and-ride-overlay" : " ^1.0.1" ,
41
41
"@opentripplanner/printable-itinerary" : " ^1.0.0" ,
Original file line number Diff line number Diff line change 1275
1275
prop-types "^15.7.2"
1276
1276
qs "^6.9.1"
1277
1277
1278
+ "@opentripplanner/core-utils@^2.1.0":
1279
+ version "2.1.0"
1280
+ resolved "https://registry.yarnpkg.com/@opentripplanner/core-utils/-/core-utils-2.1.0.tgz#ab7271a2b560168b21b0dd26c78532f24fd031f5"
1281
+ integrity sha512-sQ3oiZB7f01kCVuTj5SzqsPe4uchupNbla+onLWH+aO3wH+OLZNuLRZZ/7oFFFnvpcFBakyg4TePPxyyEyJlMA==
1282
+ dependencies:
1283
+ "@mapbox/polyline" "^1.1.0"
1284
+ "@turf/along" "^6.0.1"
1285
+ bowser "^2.7.0"
1286
+ lodash.isequal "^4.5.0"
1287
+ moment "^2.24.0"
1288
+ moment-timezone "^0.5.27"
1289
+ prop-types "^15.7.2"
1290
+ qs "^6.9.1"
1291
+
1278
1292
"@opentripplanner/endpoints-overlay@^1.0.1":
1279
1293
version "1.0.1"
1280
1294
resolved "https://registry.yarnpkg.com/@opentripplanner/endpoints-overlay/-/endpoints-overlay-1.0.1.tgz#d95f0bbfddc9382b593845799b963340eece2742"
1332
1346
react-resize-detector "^4.2.1"
1333
1347
velocity-react "^1.4.3"
1334
1348
1335
- "@opentripplanner/location-field@^1.0.1 ":
1336
- version "1.0.1 "
1337
- resolved "https://registry.yarnpkg.com/@opentripplanner/location-field/-/location-field-1.0.1 .tgz#9db5622208739db06d707bfb5b443291598d803e "
1338
- integrity sha512-V2i1BDQPzQ8OJ1F1JQkH++LNLQzHR3w0nGvIwY31iTEdukDeePSa5raSPFwAXy90uqNtk2Xt6NPRetMII1L//w ==
1349
+ "@opentripplanner/location-field@^1.0.2 ":
1350
+ version "1.0.2 "
1351
+ resolved "https://registry.yarnpkg.com/@opentripplanner/location-field/-/location-field-1.0.2 .tgz#16daeac83be8f10b157fc8c51f32e2a8eb0a8db8 "
1352
+ integrity sha512-+YIXXltw6ZuHyvCzbDL97Wfhq+C/FaT2utmWAf1O1g6BGpkF6dHjh8+ZHoH0al/4/t6AyhSVlPMXOEyaj2xERA ==
1339
1353
dependencies:
1340
- "@opentripplanner/core-utils" "^1.2 .0"
1354
+ "@opentripplanner/core-utils" "^2.1 .0"
1341
1355
"@opentripplanner/geocoder" "^1.0.2"
1342
1356
"@opentripplanner/humanize-distance" "^0.0.22"
1343
1357
"@opentripplanner/location-icon" "^1.0.0"
You can’t perform that action at this time.
0 commit comments