[Charts] Remove/Hide useDarkMode
hook from charts theme service
#220432
Labels
Team:Visualizations
Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion)
In the
charts
plugin we exposed auseDarkMode
hook to make it easy to fetch dark mode from charts instead of also having to import the theme.kibana/src/platform/plugins/shared/charts/public/services/theme/theme.ts
Lines 35 to 47 in e269d04
In addition we also provided an observable for
darkModeEnabled$
.kibana/src/platform/plugins/shared/charts/public/services/theme/theme.ts
Lines 26 to 33 in e269d04
With changes to correct usage of the theme across kibana in #220141 we deprecated these properties to prevent usage in favor of
useKibanaIsDarkMode
(later to beuseIsDarkMode
from eui).These properties should eventually be hidden in the case of
darkModeEnabled$
and removed in the case ofuseDarkMode
.The text was updated successfully, but these errors were encountered: