anseki / vscode-color

Helper with GUI to generate color codes such as CSS color notations.
MIT License
97 stars 27 forks source link

can not use in react jsx #65

Closed denghui1010 closed 6 years ago

denghui1010 commented 6 years ago

Steps to Reproduce:

can not use in react jsx like this: const styles = StyleSheet.create({ container: { backgroundColor: 'rgba(0, 0, 0, 0.4)', flex: 1, alignItems: 'center', justifyContent: 'center', }, root: { position: 'absolute', right: 24, left: 24, borderWidth: 1, borderColor: '#dddddd', borderRadius:8, backgroundColor: '#ffffff', } });

Log (All lines): (Click menu of VS Code "Help > Toggle Developer Tools", and click "Console" tab)

anseki commented 6 years ago

Hi @denghui1010, thank you for the comment.

I confirmed that the extension worked fine in the code you indicated. So, what does "can not use" you said mean? Do you mean that Pick Color command doesn't work?

denghui1010 commented 6 years ago

Preview color works in .css but not works in .js Pick color command can use in .css and .js image

anseki commented 6 years ago

What is preview color? Do you say about a small box on the left of #dbc9c9?

denghui1010 commented 6 years ago

@anseki yes

anseki commented 6 years ago

I see. That preview box is shown by VS Code, not the extension. You should report this issue to VS Code team, not here.

denghui1010 commented 6 years ago

@anseki e... ok, I make a mistake, close this issue

anseki commented 6 years ago

😄