-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
How to Change the color of TooltipIcon? #3602
Comments
it looks like we can modify the tooltip styles to be less specific. as a workaround you can increase the specificity of your selector (i.e. |
didn't help! (tried: path, circle, ...) it's displayed as white. |
Seems that the CodeSandbox link yields an error. Would you want to fix the CodeSandbox link? |
I don't see any error! Please try again or use this one: |
Seems that you reused a single CodeSandbox link for your multiple issues. Probably that's where the problems around reproducibility came from? https://codesandbox.io/s/reverent-firefly-pyc03 doesn't seems to show a tool bar. Would you want to further reduce the case? |
https://codesandbox.io/s/reverent-firefly-pyc03 does include a toolbar with ToolTip icons that the color change is not taking affect: |
it doesn't look like your CSS selectors are targeting the icons that your arrows are pointing at in your illustration |
Can you please explain what do you mean with "Not Targeting"?! I tried using my customized css class: '< Help24 className="White" />'
and in addetion I added to my css the base icon css :
.bx--tooltip-icon path { Why it's working for:
which is not surrounded with TooltipIcon? |
I think I was viewing your older link because the class names did not match up. it seems the selector is not high enough specificity in your latest link, which I believe you can work around with #3649 will reduce the specificity and make this easier to address |
Thanks for your help. |
What package(s) are you using?
carbon-components
carbon-components-react
Summary
I want to change the color of a tooltip icon, tried to add the following to my css and use it but it didn't work:
Relevant information
Sandbox: https://codesandbox.io/s/codesandbox-s4osh
The text was updated successfully, but these errors were encountered: