Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mstarkman opened this issue Sep 11, 2017 · 1 comment
Closed

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

mstarkman opened this issue Sep 11, 2017 · 1 comment
Labels

Comments

@mstarkman
Copy link

mstarkman commented Sep 11, 2017

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.

@daedlock
Copy link
Member

Reproduced this on latest plugin version. @undeadcat fyi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants