-
Notifications
You must be signed in to change notification settings - Fork 57
Minor Pattern Viewer Overhaul #1467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
<HeaderText className="header-text"> | ||
<FormattedMessage id="components.TripViewer.header" /> | ||
</HeaderText> | ||
<div className="back-button-container"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh weird, egg on my face i was only looking at chrome. I removed the display: content
on the heading which fixed this issue. It did add a small difference in the percy tests for the route viewer. If we want, I can add a v small margin to the Route viewer header to have it match the tests more closely, but it does feel like a pretty insubstantial change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
</h1> | ||
</div> | ||
)} | ||
</h1> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may need to pull the branch? This shadow is gone, thats what this was referring to #1467 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes apologies! This is an old screenshot but the issue is still present -- the new non-shadowey line is still there!
Description:
hideBackButton
prop (it didn't do anything)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.
RouteRowDetails
component that can be used in the route viewer and pattern viewerPR Checklist: