-
-
Notifications
You must be signed in to change notification settings - Fork 533
[BUG] Unable to disable style injection #1060
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
Comments
Please give more details about your dev environment. Are you running a |
@ShahwarNisar have you seen it? #1059 Also, are you sure those environment variables are being loaded correctly? Can you provide the information that @gabrieljablonski asked, please? and if possible, a reproducible example |
Hi, Thanks for the quick response really appreciate that. @gabrieljablonski I'm using react-scripts @danielbarion Yes I have followed both ways mentioned here (https://react-tooltip.com/docs/examples/styling#disabling-reacttooltip-css) but neither one worked for me. Also, I have tried setting values directly to the env files as well as in the build value in the package.json like:
Let me know/guide please if I'm doing something wrong, please. EDIT: |
I believe this is happening because Bundlers like @danielbarion we might have to consider extra env variables with the |
@ShahwarNisar We've realized using environment variables is unviable for setting config options on node packages. #1052 will offer an alternative to this issue with style injection, but it should be a few days before we have the time to get to it. Until then, please consider using |
@ShahwarNisar please test what we're trying on #1052 with the beta version If I understand your use-case correctly, you should do Please let us know the results. |
Hey @gabrieljablonski, Once again, thank you for your excellent work! Best regards, |
That's great to hear. I suggest upgrading to the official release |
Hi,
I have to apply CSP standards in my React application. So, according to your docs, we have to set REACT_TOOLTIP_DISABLE_BASE_STYLES=true & REACT_TOOLTIP_DISABLE_CORE_STYLES=true to disable styles and import the CSS styles file in app.js. But apparently, after following all the steps I'm still seeing react-tooltip adding inline styles.
Can you please suggest a way how can I achieve this? You can check SS of the error.
Regards,
Shahwar
The text was updated successfully, but these errors were encountered: