-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Tooltip custom variant with prop bg does not color the arrow #4695
Comments
@arbejd, your reproduction is just a fresh chakra UI sandbox |
Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please follow the issue template as we're not able to act on issues that are lacking important information. |
Dont know why i didnt save it. I remade the repo here: |
@segunadebayo is this sufficient to reopen? |
While these guys play bureaucracy: If anybody googles their way here when having the same problem (like me): define a css var const $arrowBg = cssVar("popper-arrow-bg");
export default {
baseStyle: {
// ... other styles
[$arrowBg.variable]: "colors.red.500",
},
}; But the better way is to use |
Well done! Shame that nothing is written in the docs about that |
The problem still persists! Thanks to @randex. I hope this issue will be fixed... |
This needs to be reopened |
@segunadebayo would it be possible to reopen this issue? |
Description
When i make a custom tooltip Variant i expect the arrow to also be colored with the bg style prop
Link to Reproduction
https://codesandbox.io/s/long-frost-9m4rm
Steps to reproduce
make a custom variant
assign to a tooltip
mouseover the tooltip
Chakra UI Version
latest
Browser
Chrome
Operating System
Additional Information
It works when you set the bg directly
The text was updated successfully, but these errors were encountered: