Mistake in documentation of v18 for dark mode #3229
Unanswered
david-paun
asked this question in
PrimeNG
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Not sure where would be the right place to report this, please let me know and remove this post if it isn't meant for here.
Documentation states the following:
providePrimeNG({ theme: { preset: Aura, darkModeSelector: '.my-app-dark' } })
However, typescript itself corrects me and tells me that this is not possible. After some digging on the internet I found that the desired config should look like:
providePrimeNG({ theme: { preset: Aura, options: { darkModeSelector: '.my-app-dark', }, }, }),
I am fully aware that this is a minor issue and a slight inconvenience at best, but I suppose it needs to be addressed :)
Beta Was this translation helpful? Give feedback.
All reactions