Skip to content

Language injection not applied when using .extend.attrs({}) #28

@mstarkman

Description

@mstarkman

Language injection not applied to the following code:

const StyledIcon = styled(Icon)`
  height: 24px;
  width: 24px;
`

const FilterIcon = StyledIcon.extend.attrs({ iconName: 'filter' })`
  line-height: 0;
  margin-right: 1rem;
`

I have several instances of this not working in my code. I am using version 1.0.4 of the plugin and everything else seems to be working properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions