From c070b57370561d010826ae34a6ae427d8d0fa29a Mon Sep 17 00:00:00 2001 From: waterWang Date: Sun, 9 Aug 2026 03:13:50 +0800 Subject: [PATCH] feat: add print stylesheet section for StreamPanel (Closes #785) Hide screen-reader-only live region when printing StreamPanel, and ensure the status indicator is printed with clean, high-contrast styling. Adds a dedicated print stylesheet section in print.css. --- src/pages/StreamPanel.tsx | 21 ++++++----- src/pages/__tests__/StreamPanel.print.test.ts | 21 +++++++++++ src/styles/print.css | 36 +++++++++++++++++++ 3 files changed, 69 insertions(+), 9 deletions(-) create mode 100644 src/pages/__tests__/StreamPanel.print.test.ts diff --git a/src/pages/StreamPanel.tsx b/src/pages/StreamPanel.tsx index 9fb876aa..fe7cdda9 100644 --- a/src/pages/StreamPanel.tsx +++ b/src/pages/StreamPanel.tsx @@ -1,5 +1,6 @@ import * as React from "react"; import { LiveRegion } from "../components/LiveRegion"; +import "../styles/print.css"; export type StreamStatus = | "connected" @@ -35,15 +36,17 @@ function formatLabel(status: StreamStatus): string { export function StreamPanel({ status, label }: StreamPanelProps) { return ( -
-