-
Notifications
You must be signed in to change notification settings - Fork 116
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
Primer::ButtonComponent
to Primer::Beta::Button
Migration Guide
#1663
Conversation
🦋 Changeset detectedLatest commit: e4acc06 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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 great! There's a few things we might want to add:
scheme
:outline
was removed, and we recommend using:invisible
- I think maybe the
trailing_visual
returned a counter component, but now you can pass in an icon or a counter. Do we need to document how to use the new slots, or maybe just link to Lookbook? - For the dropdown param, we would recommend people use this markup/slot https://primer.style/view-components/lookbook/inspect/primer/beta/button/trailing_action so maybe again, we can just link to Lookbook examples 🤔
4a41ed3
to
e340809
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.
Awesome, thank you 🎉
Co-authored-by: Cameron Dutro <[email protected]>
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 great!
@@ -39,6 +39,6 @@ linters: | |||
AllCops: | |||
DisabledByDefault: true | |||
Primer/DeprecatedComponents: | |||
Enabled: true | |||
Enabled: false |
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.
Curious about this change
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 already run in rubocop, so it's just duplicated here and didn't seem necessary. the PR description shows the duplicate output when this was running vs non-duplicate output after i disabled it
Description
this PR updates the
migrations
page on the primer.style site, to include migration guides that show a developer how to move away from a deprecated component. The first guide is moving fromPrimer::ButtonComponent
toPrimer::Beta::Button
. the deprecation configuration forPrimer::ButtonComponent
is also updated to include the new guide url, and mark the component as not being auto-correctableThere was also a duplicate of the Deprecated Components linter, between rubocop and erblint. this PR corrects that by disabling this linter within erblint. see the section on "Updating default erblint", below
Screenshots
New
Migrations
page:ButtonComponent
toBeta::Button
migration page:Updating Default ERBLint
The default ERBLint configuration runs the Deprecated Components linter twice: once as rubocop and once as erblint. this PR also updates the erblint config to not duplicate that linter.
Duplicated linter message:
Corrected linter message:
Code annotation w/ deprecation messages:
Integration
no
Merge checklist