Skip to content

TextContent + Text results in two Content components #825

Open
@jpinsonneau

Description

@jpinsonneau

Currently, codemod generates two nested Content components even if it's not necessary.

Image

Some scenarios can be challenging, such as if TextContent have an id or css classes that the Text child doesn't.
Maybe covering the simple cases would be good enough ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions