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
Update Primer #404
Update Primer #404
Conversation
@@ -1 +0,0 @@ | |||
.state{display:inline-block;padding:4px 8px;font-weight:600;line-height:20px;color:#fff;text-align:center;background-color:#999;border-radius:3px}.state-open,.state-proposed,.state-reopened{background-color:#6cc644}.state-merged{background-color:#6e5494}.state-closed{background-color:#bd2c00}.state-renamed{background-color:#fffa5d} |
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.
If you need primer-states
then include the primer-labels
package. States were moved into the labels package, and the labels package was added to the product package. If you don't need states then you can delete all these files and references to them.
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 don't need them. will delete.
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 testing this @sophshep 💖 Happy to hear things are working as expected.
Heads up, this version of Primer is a pre-release which I set up for testing before merging in the monorepo pr. It's totally fine to leave the open source site pointing to this, however I will be updating this to a major release once I've merged in the primer monorepo pr (probably today). You can update to the major release when I've published that if you like. Nothing should really change apart from this number and maybe some content on the primer readme, so should be fairly simple to update.
@broccolini @sophshep hi! 👋 ok to merge this, or do we need to update version? |
@nayafia We should update to an even newer version! I'll take care of this this week. |
This is good to go from the design side. All markup has been updated to allow for new changes from the latest version of Primer. One thing that has me stumped is the failing CI test. It says Any ideas @github/design-systems & @MikeMcQuaid? |
Hey @sophshep, I think the problem is that Travis is caching your If you need to publish on Pages with npm modules, there are two ways that might work better than committing
I'll try blowing away the cache and restarting the build, and if that works we can discuss whether it makes sense to change the publishing strategy. |
Well, deleting the cache for this branch didn't do it. I cloned the repo locally, ran
A bunch of other load paths were listed where I put the Anyway, that's not really the problem. On my end, it looks like
But, if unpkg is to be believed, this directory was published, and it includes
|
Previously, `node_modules` was in `.gitignore` because there was a lot of dependencies for the tests that don't need to be committed. However, npm is also used to manage the primer dependency, which _does_ need to be committed so GitHub Pages can build the website. At some point, someone (whose name rhymes with "Landon Creepers") thought it'd be fine to just type `git add -f node_modules/primer*` to commit the primer dependencies and leave everything else ignored. This works…until you want to update primer. Any update requires that the author knows about this awful `.gitignore` setup, and uses the dreadful `-f` flag. This commit: - Moves the dependencies needed for tests into `test/package.json` - Adds `test/node_modules` to `.gitignore` - Removes `node_modules` from `.gitignore`
@shawnbot, @sophshep: sorry for the confusion with tests failing. The fix was to Quora appears to be acting up, which was breaking the tests again, so I ignored that from the link checker. |
Fantastic, thanks @bkeepers! 🍻 |
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've updated to our new version of Primer (
primer-css@7.0.0-2
), as listed here: primer/css#230 (comment). No issues! Everything worked as expected 🎉I'd love to merge this since it updates all the colors and other various improvements we've made to primer in the time since it was last included here!
cc/ @github/design-systems