Skip to content
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

hoverBackgroundColor not working in defaults in TypeScript #11913

Closed
teodorachiosa opened this issue Oct 1, 2024 · 0 comments · Fixed by #11931
Closed

hoverBackgroundColor not working in defaults in TypeScript #11913

teodorachiosa opened this issue Oct 1, 2024 · 0 comments · Fixed by #11931
Labels
type: types Typescript type changes

Comments

@teodorachiosa
Copy link

teodorachiosa commented Oct 1, 2024

Expected behavior

hoverBackgroundColor should be supported, just like it works in JavaScript:
https://codepen.io/teodorachiosa/pen/rNXOZwz?editors=1010

Current behavior

Using hoverBackgroundColor in TS, I'm getting this error:
Property 'hoverBackgroundColor' does not exist on type 'Defaults'. Did you mean 'backgroundColor'?

Reproducible sample

https://www.typescriptlang.org/play/#code/JYWwDg9gTgLgBAbzgYQBYENZwL5wGZQQhwDkAxhrAHQBWAziQNwCwAUG2pjFQCYCmedAFcANjDpVUEAG58oAIXRkA1gHNCQgHY9kEEdDgBeOAG0SAYjx4ADLeskANKXO2rtkgF0W7VtMxwyGAAPIzgeCDIhED5NblU+GABRET5o2PkATwBJHgAKACIQDM5YfIBKOHQ6OAAJABUAWQAZZHRNPzpk1JiYbz8oOCKS+GNNPgB3FEoYXMCgpwQ2OGW4GAywPgAuUjBgPkcllZ50GHRtxdYVq7gRdAAjPhE6bZN8gCU+HnynfPkRIT43zg+QAmo99OMgfkAOJQPgxKEABSEUDAKShAHkoG14vkPA5DtcwicqglnqYLkSibcHiJthY4BA8HAAGoQGB8BgEy5Uq7HU4vACMACYnIKAJxOADMTgArE5RXApfjCddsB5VdhuVcIGAYMAIJpyZTrnQyOgUsbVVcgudrdd7cstY64Bk7TzeS7sPbvR6cGxsGVvGwgA

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

4.4.4

Browser name and version

Chrome 129.0.6668.59

Link to your project

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: types Typescript type changes
Projects
None yet
2 participants