Skip to content

Commit

Permalink
chore(codemods): update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
HeartSquared committed Dec 19, 2024
1 parent e5e47f3 commit 9c04236
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/components/codemods/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,8 @@ Migrates `Button` and `IconButton` component to `Button` V3 or `LinkButton`.
- `classNameOverride` becomes `className`
- `data-automation-id` becomes `data-testid`
- `disabled` becomes `isDisabled`
- (TO DO) Only when `href` exists:
- `newTabAndIUnderstandTheAccessibilityImplications` becomes `target="_blank"`
- `rel="noopener noreferrer"` is also added
- `newTabAndIUnderstandTheAccessibilityImplications` becomes `target="_blank"`
- `rel="noopener noreferrer"` is also added
- `component` will not be removed by the codemod, but will throw a TypeScript error as the prop itself no longer exists
- (TO DO) A `@todo` comment will be prepended to the prop
- For `IconButton` only:
Expand Down

0 comments on commit 9c04236

Please sign in to comment.