Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions