Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Preserve platform heading typography on native sort buttons

pulse-triage[bot]104ca7e02520
diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
index 41beeeb06a..cdbb7c447a 100644
--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
@@ -1569,6 +1569,7 @@ describe('shared primitive guardrails', () => {
expect(heading).toContain('<button');
expect(heading).toContain('type="button"');
expect(heading).toContain('focus-visible:ring-inset');
+ expect(heading).toContain('[text-align:inherit] [text-transform:inherit]');
expect(heading).toContain('<span aria-hidden="true">');
// Native keyboard clicks bubble to the one cell handler. A second key
// handler would double-advance Enter or Space through the sort cycle.
diff --git a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
index ce51f1d8ee..4f7f237793 100644
--- a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
+++ b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
@@ -669,7 +669,7 @@ export function PlatformSortableTableHead<SortKey extends string>(props: {
<Show when={props.sortKey !== undefined} fallback={label()}>
<button
type="button"
- class="min-h-6 w-full min-w-0 cursor-pointer rounded-sm text-inherit [text-align:inherit] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-sky-400/70"
+ class="min-h-6 w-full min-w-0 cursor-pointer rounded-sm text-inherit [text-align:inherit] [text-transform:inherit] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-sky-400/70"
>
{label()}
<span aria-hidden="true">