fix text alignment for host status pill (#34851)

**Related issue:** Fixes #34820

This fixes the text alignment of the tooltip for the host status pill.
We replace the current tooltip implementationt use TooltipWrapper so
that its consistant with all other tooltips
This commit is contained in:
Gabriel Hernandez 2025-10-29 13:49:46 +00:00 committed by GitHub
parent 77a8b91794
commit 31f81ede83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 15 deletions

View file

@ -179,19 +179,14 @@ const HostHeader = ({
return (
<>
<span className={classNames} data-tip data-for="tag-tooltip">
{tag.title}
</span>
<ReactTooltip
place="top"
effect="solid"
id="tag-tooltip"
backgroundColor={COLORS["tooltip-bg"]}
<TooltipWrapper
tipContent={tag.generateTooltip(platform)}
position="top"
underline={false}
showArrow
>
<span className={`${baseClass}__tooltip-text`}>
{tag.generateTooltip(platform)}
</span>
</ReactTooltip>
<span className={classNames}>{tag.title}</span>
</TooltipWrapper>
</>
);
};

View file

@ -1,5 +1,5 @@
import React from "react";
import { isMacOS, isAppleDevice, isIPadOrIPhone } from "interfaces/platform";
import { isMacOS, isIPadOrIPhone } from "interfaces/platform";
import { HostMdmDeviceStatusUIState } from "../../helpers";
interface IDeviceStatusTag {
@ -61,8 +61,13 @@ export const DEVICE_STATUS_TAGS: DeviceStatusTagConfig = {
locking: {
title: "LOCK PENDING",
tagType: "warning",
generateTooltip: () =>
"Host will lock when it comes online. If the host is online, it will lock the next time it checks in to Fleet.",
generateTooltip: () => (
<>
Host will lock when it comes online. If the host is
<br />
online, it will lock the next time it checks in to Fleet.
</>
),
},
wiped: {
title: "WIPED",