-
Notifications
You must be signed in to change notification settings - Fork 3
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
Customer stories: Stories page and homepage update #380
Customer stories: Stories page and homepage update #380
Conversation
✅ Deploy Preview for cal-itp-website ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
716e09d
to
beafe24
Compare
Hey @ohmegasquared, This page is not 100% done yet, but it's close. I have all the sections for both desktop and mobile aligned with the latest content and for the most part, have the font sizes, colors and margins/padding. There's some refinement with the inside of the Here's how I approached coding the tricky
This is the way the stat section on desktop is constructed: ![]() ![]() There is a background applied to the div highlighted in purple, that has the linear gradient: ![]() I have hard-coded this 190px overlap by using a negative margin. But what I think we need here is a gradient that's more complex than a linear gradient: a gradient that has the linear gradient on the whole rectangle, except, the left-hand half is entirely transparent. Trying to draw out what I mean in Google Spreadsheets: ![]() CSS gradients can be made quite complex, but I don't think it can make a gradient of what I need. Instead of a CSS-coded gradient, can use an image of a gradient as a background instead of linear gradient code. Do you think you could make an image like this in Photoshop or Figma? There are some other approaches I can try after, but they're slightly hackier, so I want to try this gradient image approach first. |
@allejo Hey Vlad, I was wondering if you could give this a code review on two specific elements. Note that the copy in this PR is not 100% complete, so that's why, for example, the first footnote's source is not a link and it doesn't go anywhere:
![]() I had some questions about how to approach the design of footnote sections overall:
I have the divs ordered so that the sidebar gets focused on first before the actual content div. Does that seem logical? Thank you |
@@ -1,33 +1,32 @@ | |||
<section class="bg-dark navbar d-print-none"> | |||
<section class="{{ page.footer-class }} bg-dark navbar d-print-none"> |
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.
I had to add this to get the footer to stay at the bottom on the Customer stories page. The way the Our impact
section is absolutely positioned breaks the normal flow of every HTML element below it, including the footer. This allows me to add the absolute-footer
class on this page only, which allows me to add the CSS code to keep the footer down where it should be.
99f305e
to
60e264d
Compare
This PR is now ready for code and design review. Please review the code/design, and mark this PR as approved (or not) wih the GitHub button. Once this PR is approved, it will be merged into #364. After that, all the copy for both Partners and Customer Stories will be reviewed together. |
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.
This is looking really good code-wise.
- Small file rename suggestion
- Small code change request to the sidebar script
- Questions/comments on Stories page headings
(missing '#stories' in homepage URL anchor links) Design approved on mobile and web 🚀 |
Posting the pa11y test results of current PR here:
|
The Wednesday update: @thekaveman This is ready for code re-review. I'd like to try to get this merged into #364 by the end of day today, if possible. One reason is because I've now identified one accesssibility testing issue, that affects both #364 and #354 -- the super small font style color is not dark enough. This color/size combo is used on photo captions on Customer Stories and on footnoes for the Partners page. I'd like to fix that in one combined PR, b/c the underlying code is the same. I've run pa11y testing (https://pa11y.org/) on both PRs, on both the home pages and the stories and partners pages, and there are no other issues. I have 2 small PRs that can go into Production (#384 #387), approved by @ohmegasquared, and ready for code review. These 2 PR's can then be rebased into the future combined PR. As of right now, the copy is still not ready yet. So hopefully I can get the real copy in tomorrow when the copy is ready, in one PR. |
@allejo Axe results on the footnote stuff: |
Ugh - Not sure why but the Netlify deploy has not updated today. So the link is not trustworthy! Please test locally. |
Nope, "Footnotes" doesn't have to be there. Kramdown already generates that section with the appropriate* ARIA roles, so that should suffice. * It looks like Kramdown generates Doing some more research, Pandoc removed the I'm not too concerned about this causing problems from an accessibility perspective, considering the accepted and valid
It is 100% bad practice to have a link just called "Source" or "Read more." Screen readers can extract all links from a page; this means that if an Assistive Technology (AT) user uses this feature, they would receive a dozen URLs with no context of where they came from (i.e., what the surrounding sentences were), and the only information they'd have is the name of the link, which would be "Source." A better practice is for links to have enough context in the name to be useful standalone, e.g., the name of the page the link is referencing.
Hmm... I can't see this causing problems for AT users since the only things affected are the link's classes. If you were misusing the |
Oops, I missed one!
Yes. |
72395f2
to
b4fe3da
Compare
1918a9f
to
8c972f5
Compare
8c972f5
to
1bb04c7
Compare
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.
One more small fix for sidenav logic
@thekaveman Added a final |
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.
This looks soooooo nice! All the interactions feel very smooth. Incredible work!
closes #354
How to test this PR
Customer stories
highlightedSidebar
#stories-GTFS-VCTD
, then the link pairs will be set to active and styled appropriately