-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Deprecate variables in 14.0.0 #973
Conversation
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/primer/primer-css/kzjd0xkqr |
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.
LGTM! 🚢👍
This formally deletes the following variable declarations:
$marketingSpacers
and$allSpacers
(use$marketing-spacers
and$marketing-all-spacers
instead)$status-pending
$repo-private-text
,$repo-private-bg
, and$repo-private-icon
$highlight-yellow
$exploregrid-item-border-radius
$stats-switcher-py
$stats-viewport-height
$min_tab_size
,$max_tab_size
I also had to make two fixes on the tool side:
script/dist.js
now includes marketing variablesdist/variables.json
(so that we can compare them inscript/test-deprecations.js
)script/test-deprecations.js
doesn't throw an error if a variable that was supposed to be deprecated and doesn't exist in the most recent version of Primer. This is the case with all of our marketing variables, because we weren't previously publishing marketing variable data. 😬