Skip to content

Commit

Permalink
Agents tooltip background (#4198)
Browse files Browse the repository at this point in the history
* agent tooltips background

* add changelog
  • Loading branch information
yenienserrano authored Jun 6, 2022
1 parent a8c8dc3 commit 526d9d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ All notable changes to the Wazuh app project will be documented in this file.
- Fixed a toast message with a successful process appeared when removing an agent of a group in `Management/Groups` and the agent appears in the agent list after refreshing the table [#4167](https://github.com/wazuh/wazuh-kibana-app/pull/4167)
- Fixed import of an empty rule or decoder file [#4176](https://github.com/wazuh/wazuh-kibana-app/pull/4176)
- Fixed overwriting of rule and decoder imports [#4180](https://github.com/wazuh/wazuh-kibana-app/pull/4180)
- fixed missing background in the status graph tooltip in agents [#4198](https://github.com/wazuh/wazuh-kibana-app/pull/4198)

## Wazuh v4.3.3 - Kibana 7.10.2, 7.16.x, 7.17.x - Revision 4304

Expand Down
8 changes: 5 additions & 3 deletions public/components/common/charts/charts/donut.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ export const ChartDonut = (props : ChartDonutProps) => {
const TooltipContent = ({ data }) => {
const borderStyle = { borderLeft: `2px solid ${data.color}` };
return (
<div style={borderStyle}>
<p style={{ marginLeft: '5px', fontSize: '0.8rem' }}>{data.label}: {data.value}</p>
<div className="echTooltip__list">
<div style={borderStyle}>
<p style={{ marginLeft: '5px', fontSize: '0.8rem' }}>{data.label}: {data.value}</p>
</div>
</div>
)
}
Expand All @@ -53,7 +55,7 @@ export const ChartDonut = (props : ChartDonutProps) => {
const onEnter = () => {
tooltip = d3.select("body")
.append("div")
.attr("class", "wz-chart-tooltip visTooltip");
.attr("class", "wz-chart-tooltip visTooltip echTooltip");
}

const onMove = (d) => {
Expand Down

0 comments on commit 526d9d4

Please sign in to comment.