Skip to content

Commit 4c449f5

Browse files
authored
Center health check indicator (#1179)
* refactor: center status indicator * fix: health status menu alignement * chore: add changelog entry
1 parent 5168625 commit 4c449f5

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ All notable changes to the Wazuh app project will be documented in this file.
77
### Added
88

99
- Support for Wazuh 5.0.0
10-
- Health check service [#811](https://github.com/wazuh/wazuh-dashboard/pull/811) [#866](https://github.com/wazuh/wazuh-dashboard/pull/866) [#961](https://github.com/wazuh/wazuh-dashboard/pull/961) [#1031](https://github.com/wazuh/wazuh-dashboard/pull/1031)
10+
- Health check service [#811](https://github.com/wazuh/wazuh-dashboard/pull/811) [#866](https://github.com/wazuh/wazuh-dashboard/pull/866) [#961](https://github.com/wazuh/wazuh-dashboard/pull/961) [#1031](https://github.com/wazuh/wazuh-dashboard/pull/1031) [#1179](https://github.com/wazuh/wazuh-dashboard/pull/1179)
1111
- Added Health Check plugin [#870](https://github.com/wazuh/wazuh-dashboard/pull/870) [#946](https://github.com/wazuh/wazuh-dashboard/pull/946)
1212
- Added manager host configuration for the default configuration file [#998](https://github.com/wazuh/wazuh-dashboard/pull/998)
1313
- Set v9 theme as default [#1092](https://github.com/wazuh/wazuh-dashboard/pull/1092)

src/plugins/healthcheck/public/components/button_header/health_check_nav_button.tsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
EuiButtonEmpty,
1010
EuiContextMenuPanel,
1111
EuiHeaderSectionItemButton,
12-
EuiHealth,
12+
EuiIcon,
1313
EuiPopover,
1414
EuiToolTip,
1515
EuiText,
@@ -58,7 +58,18 @@ export const HealthCheckNavButton = ({
5858

5959
const isPlacedInLeftNav = coreStart.uiSettings.get('home:useNewHomePage');
6060

61-
const overallStatusIndicator = <EuiHealth color={mapTaskStatusToHealthColor(status)} />;
61+
const overallStatusIndicator = (
62+
<EuiIcon
63+
style={{
64+
display: 'inline-flex',
65+
alignItems: 'center',
66+
justifyContent: 'center',
67+
}}
68+
type="dot"
69+
color={mapTaskStatusToHealthColor(status)}
70+
aria-hidden
71+
/>
72+
);
6273

6374
// ToDo: Add aria-label and tooltip when isPlacedInLeftNav is true
6475
const button = (
@@ -132,6 +143,7 @@ export const HealthCheckNavButton = ({
132143
setPopoverOpen(false);
133144
}}
134145
panelPaddingSize="m"
146+
panelStyle={{ marginLeft: '-1px' }}
135147
>
136148
{contextMenuPanel}
137149
</EuiPopover>

0 commit comments

Comments
 (0)