-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Disables tooltips in mini histograms to avoid bug with sticky tooltips and to be in line with APM sparkline behavior. - Fix to set mini histogram background to transparent so the chart background picks up the background of a hovered table row. - Fix some hard coded values by using values provided by EUI. - Fixes an issue where histograms were assigned to the wrong table rows. - Support for loading indicator and empty chart state. - Tweaks analysis table column widths. (cherry picked from commit 3117f67) Co-authored-by: Walter Rafelsberger <[email protected]>
- Loading branch information
1 parent
3062f7c
commit 114d1b8
Showing
4 changed files
with
99 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { useMemo } from 'react'; | ||
|
||
import { euiLightVars as euiThemeLight, euiDarkVars as euiThemeDark } from '@kbn/ui-theme'; | ||
|
||
import { useAiOpsKibana } from '../kibana_context'; | ||
|
||
export type EuiThemeType = typeof euiThemeLight | typeof euiThemeDark; | ||
|
||
export function useEuiTheme() { | ||
const { | ||
services: { uiSettings }, | ||
} = useAiOpsKibana(); | ||
|
||
return useMemo( | ||
() => (uiSettings.get('theme:darkMode') ? euiThemeDark : euiThemeLight), | ||
[uiSettings] | ||
); | ||
} |