fix: make integration warnings keyboard accessible
This commit is contained in:
1 parent
0f9d038aaf
commit
6cdda54e10
1 file changed
+4
-10
@@ -1,6 +1,6 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { Tooltip, VisuallyHidden } from "@mantine/core";
|
import { ActionIcon, Tooltip } from "@mantine/core";
|
||||||
import { IconAlertTriangle } from "@tabler/icons-react";
|
import { IconAlertTriangle } from "@tabler/icons-react";
|
||||||
|
|
||||||
import { useI18n } from "@homarr/translation/client";
|
import { useI18n } from "@homarr/translation/client";
|
||||||
@@ -24,15 +24,9 @@ export function IntegrationErrorIndicator({ results }: IntegrationErrorIndicator
|
|||||||
const label = `${t("common.error")}: ${names}`;
|
const label = `${t("common.error")}: ${names}`;
|
||||||
return (
|
return (
|
||||||
<Tooltip label={label} position="left" withArrow>
|
<Tooltip label={label} position="left" withArrow>
|
||||||
<span style={{ display: "inline-flex" }}>
|
<ActionIcon variant="transparent" color="orange" size={18} aria-label={label} style={{ cursor: "help" }}>
|
||||||
<IconAlertTriangle
|
<IconAlertTriangle aria-hidden size={14} />
|
||||||
aria-hidden
|
</ActionIcon>
|
||||||
size={14}
|
|
||||||
color="var(--mantine-color-orange-6)"
|
|
||||||
style={{ cursor: "help", flexShrink: 0 }}
|
|
||||||
/>
|
|
||||||
<VisuallyHidden>{label}</VisuallyHidden>
|
|
||||||
</span>
|
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user