Skip to content

[V5] - styled doesn't work as it worked in V4 #242

@albertcito

Description

@albertcito

Describe the bug

In V4, the icon displays the size and color based on size-[size] and text-[color] className. In V5, it doesn't work.

Image Image

Reproduction

cssInterop(IconStyled, {
  className: {
    target: "style",
    nativeStyleToProp: {
      height: "size",
      width: "size",
    },
  },
});
styled(IconStyled, {
  className: {
    target: "style",
    nativeStyleToProp: {
      height: "size",
      width: "size",
    },
  },
});

How can I make it work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions