-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add Brand Guide to repo #26
Conversation
# Conflicts: # _data/navigation.yaml # _data/titles_roots.yaml # _includes/guidelist.html
# Conflicts: # _data/navigation.yaml # _data/titles_roots.yaml # _includes/guidelist.html
Note that this commit doesn't fix the styling, just the content on the color matrix page - Adds filters contrastRatio and humanReadableContrastRatio to calculate ratios for display - Adds markdown-it-attrs to allow for inline styling of Markdown links {:.usa-button} - Documents how to add an npm package - Deletes test files
- Copies all style files from the brand guide, but does not link them: styles are still broken in complex ways - Changes download paths, to make downloading files work
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.
Thanks for pushing this so far along, it's looking nice! Just a few changes to make before it's 👍
- Update Guide title to "Visual identity" - Delete -old files - Move filter functions, including color contrast, to config/ - Fix line breaks, styles, and URLs across pages - Add note to README about how to link files for download
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.
Just one broken download link to fix, otherwise looks good to me. Thanks for making all of the changes!
Would you mind making a ticket to capture the follow-on style work for this one?
I just double-checked, all of the failing HTML validation tests and pa11y issues are happening in the Engineering Guide. I'd like someone's approval (@alexbielen? @igorkorenfeld?) to merge, given that context. |
It looks like one of the pa11y flags is on the color-matrix table (copied below) is that something we could fix before merging? Or could that be put on a separate branch so it doesn't get flagged for other PRs. I just realized that we should also update the description for the PR since it has changed from the original WIP.
|
@igorkorenfeld Somehow I didn't see that one, thanks for catching! But since that page is an include, my understanding is that having a second Looking deeper: I'm noticing that it's scanning http://localhost:8080/content/brand/_includes/color-matrix/, which strikes me as an error. It should be scanning Looking even deeper: Since pa11y scans sitemap.xml, this also implies that the sitemap is generating incorrect data — there's no finished site whose URLs should contain a path like The more I dig in, the more this strikes me as out of scope for this ticket. Thoughts? |
Ah that's a great point! Eleventy is processing that file as a page, and it shouldn't. I believe if this file lived within the main |
The engineering part that is failing in pa11y testing has been fixed in main. pull the main and it should pass the checks. |
Closes https://github.com/18F/TLC-crew/issues/286
Changes proposed in this pull request:
This adds in the Brand Guide.
{% include... %}
linksWIP:
Since I'm leaving the org, you can build off this PR or close it and start a new one!