Skip to content

Conversation

amy-corson-ibigroup
Copy link
Contributor

@amy-corson-ibigroup amy-corson-ibigroup commented Sep 4, 2025

Description:

  • Remove the hideBackButton prop (it didn't do anything)
  • Pattern viewer back button on by default (because switching between patterns means you can't use the browser back button to return to route viewer)
  • Trip viewer back button on by default (intuitive to return to the itinerary)
  • Other back buttons fully removed
  • Created a back button component that can be used in several places

Also I removed the background color on the pattern viewer and changed the route color into more of an accent color. I also moved the operator and external link to the bottom of the page (in line with some previous designs) but I am open to feedback.

  • Removed the route color background
  • Created a RouteRowDetails component that can be used in the route viewer and pattern viewer

PR Checklist:

  • Does the code follow accessibility standards (WCAG 2.1 AA Compliant)?
  • Are all languages supported (Internationalization/Localization)?
  • Are appropriate Typescript types implemented?
Before After (default) After (with useRouteColorAsBackground)
image image image

@miles-grant-ibigroup miles-grant-ibigroup self-assigned this Sep 5, 2025
Copy link
Collaborator

@miles-grant-ibigroup miles-grant-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this is quite a good cleanup. Well implemented. Just a few small issues!

However, I would like to maybe ask for the old colored background mode to be configurable (even if off by default)? Just because on some configurations which have a whiter map the amount of white on the screen is pretty glaring, especially when the nearby view sidebar, the itinerary selection sidebar, and schedule view sidebar each have strong background colors.

@@ -23,8 +20,19 @@ export const RouteNameContainer = styled.div`
`
export const LogoLinkContainer = styled.div`
display: flex;
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a new shadow that's not seen anywhere else in our design. I'm ok to introduce a new pattern, but if we do that then shouldn't we add it some other places as well? The trip viewer and the line between the itinerary planner and the itinerary list could probably use this shadow as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay I've done something controversial and taken the slight border which was in the route viewer and added it here and to the trip viewer. I think it looks a little cleaner on patterns with no overflow but lmk what you think! Pics in the PR description

<HeaderText className="header-text">
<FormattedMessage id="components.TripViewer.header" />
</HeaderText>
<div className="back-button-container">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2025-09-05 at 3 00 58 AM Alignment here is very off

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleaner now! And I fixed the header on mobile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants