Skip to content

Modal - automate updating from deprecated Modal to new implementation #810

Open
@thatblindgeye

Description

@thatblindgeye

Follow up to comments in #808 and breaking change PR patternfly/patternfly-react#10799. This also would rely upon #809 getting in first.

We should provide a codemod that helps consumers automate an upgrade from the deprecated Modal (which will have had its import path updated to the deprecated directory as part of another codemod) to the current composable implementation. This would include:

  • updating the import path back to non-deprecated
  • importing other subcomponents
  • grabbing certain props from Modal and creating a new structure based on those props
  • removing props from Modal

Required actions:

  1. Build codemod
  2. Build test
  3. Update readme with description & example

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions