diff --git a/js/components/ladderPageShared/ladder.tsx b/js/components/ladderPageShared/ladder.tsx index e0d17a77..f8d37424 100644 --- a/js/components/ladderPageShared/ladder.tsx +++ b/js/components/ladderPageShared/ladder.tsx @@ -179,8 +179,7 @@ export const Ladders = ({ labelMode="lead" trainLocs={branchVehicles.map(vehicleToTrainLoc)} stationSelection={null} - // TODO: split scrolling to a train and highlighting a train in rail-tech-ui - scrollToConsist={selected} + scrollToConsist={null} onVehicleSelection={onVehicleSelection} setStationSelection={() => undefined} eastToWestStations={stationList.map(toLadderStation)} @@ -203,6 +202,7 @@ export const Ladders = ({ }} labelRemap={(car: CarId) => remapLabel(car, routeId)} getInitialPredictionsDirection={() => 0} + highlight={selected} /> ), diff --git a/package-lock.json b/package-lock.json index 525d5dbb..b4470b37 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@tailwindcss/forms": "0.5.11", "esbuild": "0.28.2", "luxon": "3.7.2", - "rail-tech-ui": "github:mbta/rail-tech-ui#v2.2.0", + "rail-tech-ui": "github:mbta/rail-tech-ui#7f970a87fe18ad10db224372b093add62cb47323", "react": "19.2.8", "react-dom": "19.2.8", "react-router": "7.18.2", @@ -9570,8 +9570,9 @@ ] }, "node_modules/rail-tech-ui": { - "version": "2.2.0", - "resolved": "git+ssh://git@github.com/mbta/rail-tech-ui.git#d500828d5d8b160f8cdce81067c341f9cc05f3e9", + "version": "3.0.0", + "resolved": "git+ssh://git@github.com/mbta/rail-tech-ui.git#7f970a87fe18ad10db224372b093add62cb47323", + "integrity": "sha512-Nfhugw9c1bDdypHnpbiDW1BpArThL+VcoZ2lLZZI59LN7QMVQWyLTiSPlPXYVPx3pGNtGVsgkgIBmdG5Qdl6ag==", "license": "MIT", "dependencies": { "@tailwindcss/container-queries": "0.1.1", diff --git a/package.json b/package.json index 0d0ace06..a5e211db 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "@tailwindcss/forms": "0.5.11", "esbuild": "0.28.2", "luxon": "3.7.2", - "rail-tech-ui": "github:mbta/rail-tech-ui#v2.2.0", + "rail-tech-ui": "github:mbta/rail-tech-ui#7f970a87fe18ad10db224372b093add62cb47323", "react": "19.2.8", "react-dom": "19.2.8", "react-router": "7.18.2",