You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provide a react hook to obtain isDarkMode directly #8693
Is your feature request related to a problem? Please describe.
In kibana we need to access the colorMode fairly frequently. But currently this task is a bit cumbersome and not easily discoverable leading to misuse.
Describe the solution you'd like
A simple hook to return just the isDarkMode ideally of the form...
Using useEuiTheme to dig out the colorMode and compare the value.
Desired timeline
Next release if possible. Currently we are using a temporary abstraction in kinana (i.e. useKibanaIsDarkMode) which can be easily replaced, see elastic/kibana#220141.
Activity