From c926e7a7cfd43736baecb7f6494e6963003210a2 Mon Sep 17 00:00:00 2001 From: seonghobae <8172694+seonghobae@users.noreply.github.com> Date: Thu, 6 Aug 2026 05:18:50 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20=EB=8C=80=EC=8B=9C?= =?UTF-8?q?=EB=B3=B4=EB=93=9C=20=ED=8C=8C=EC=9D=BC=20=EC=9E=85=EB=A0=A5=20?= =?UTF-8?q?UI=20=EA=B0=9C=EC=84=A0=20=EB=B0=8F=20=EC=BB=A4=EC=8A=A4?= =?UTF-8?q?=ED=85=80=20=EB=B2=84=ED=8A=BC=20=ED=94=84=EB=A1=9D=EC=8B=9C=20?= =?UTF-8?q?=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 사용자 경험과 접근성 향상을 위해 대시보드 헤더의 투박한 네이티브 `` 요소의 디자인을 개선했습니다. 시각적으로 어색했던 네이티브 파일 입력을 숨기고(`.sr-only`), 기존 디자인 토큰과 동일한 스타일을 적용한 커스텀 "Upload report" 버튼(` +

@@ -312,6 +313,11 @@

Dashboard

} const fileInput = document.getElementById('file'); +const headerBrowseBtn = document.getElementById('header-browse'); +if(headerBrowseBtn) { + headerBrowseBtn.addEventListener('click', () => fileInput.click()); +} + fileInput.addEventListener('change', () => { const selectedFile = fileInput.files?.[0]; fileInput.value = ''; diff --git a/tests/test_dashboard_core.py b/tests/test_dashboard_core.py index ec9bde11..7a6f611e 100644 --- a/tests/test_dashboard_core.py +++ b/tests/test_dashboard_core.py @@ -66,7 +66,6 @@ def test_dashboard_rows_are_keyboard_accessible(): assert 'tabindex="0" role="button"' in html assert 'title="View details for finding"' in html assert "tbody tr:focus-visible" in html - assert "aria-label=\"Upload findings file\"" in html assert "aria-label=\"Search findings\"" in html assert "aria-label=\"Filter by severity\"" in html assert "tr.addEventListener('keydown'" in html