-
Notifications
You must be signed in to change notification settings - Fork 544
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
[⏪ Reverted] fix(PageLayout): Remove warning
for the deprecated position
prop
#3545
Conversation
|
Name | Type |
---|---|
@primer/react | Patch |
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
size-limit report 📦
|
This reverts commit bdbcfd1.
30e394a
to
843e304
Compare
3c5224d
to
fdcd281
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.
+1 for TS @deprecated
, I'd vote for just removing the warning in console personally and only use @deprecated
till we find a better pattern for warnings here.
Here's the snippets we've been using for the changelog if it helps for messaging! (Also let me know if they're incorrect 😅)
/**
* @deprecated Use source order instead of relying on the `position` prop
*
* Before:
* ```
* <PageLayout>
* <PageLayout.Content />
* <PageLayout.Pane position="start" />
* </PageLayout>
* ```
*
* After:
* ```
* <PageLayout>
* <PageLayout.Pane />
* <PageLayout.Content />
* </PageLayout>
* ```
*/
warning
for the deprecated position
prop
…3589) * Revert 57c4bdf * Create nervous-dolls-dream.md * Update nervous-dolls-dream.md * Revert "fix(PageLayout): Remove `warning` for the deprecated `position` prop (#3545)" This reverts commit 430a203. * linter caught a bad merge! * Remove reverted changeset * copy old test * Update nervous-dolls-dream.md
warning
for the deprecated position
propwarning
for the deprecated position
prop
warning
for the deprecated position
propwarning
for the deprecated position
prop
deprecating PageLayout.Pane PR introduces a warning then the prop is used and although this is a good practise, it is not dotcom-friendly. Because it fails dotcom tests since warnings are not expected.
For the time being, we are settling for removing the warnings and only going with the TS
deprecated
notice. This PR removes the warning and adds the TSdeprecated
notice.For more context, please see the slack thread here (GitHub stuff only)
Screenshots
No visual change
Merge checklist
Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.