From fa2a4cca301cac35fafb3c0f583a37762c8577d9 Mon Sep 17 00:00:00 2001 From: seonghobae <8172694+seonghobae@users.noreply.github.com> Date: Wed, 15 Jul 2026 20:47:03 +0000 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20=EB=B9=88=20?= =?UTF-8?q?=EB=94=94=EB=A0=89=ED=86=A0=EB=A6=AC=20=EC=83=81=ED=83=9C?= =?UTF-8?q?=EC=9D=98=20=EC=A0=91=EA=B7=BC=EC=84=B1=20=EB=B0=8F=20=EC=8B=9C?= =?UTF-8?q?=EA=B0=81=EC=A0=81=20=EC=9D=BC=EA=B4=80=EC=84=B1=20=EA=B0=9C?= =?UTF-8?q?=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .jules/palette.md | 3 +++ src/main/kotlin/html4tree/main.kt | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.jules/palette.md b/.jules/palette.md index 9a12c9d..77c0ac5 100644 --- a/.jules/palette.md +++ b/.jules/palette.md @@ -48,3 +48,6 @@ ## 2024-08-01 - 네이티브 브라우저 UI의 다크 모드 지원 강제 **학습:** CSS 미디어 쿼리(`@media (prefers-color-scheme: dark)`)를 통해 다크 모드를 지원하더라도, 브라우저의 네이티브 UI 요소(스크롤바, 기본 폼 컨트롤, 기본 백그라운드 등)는 테마 변경을 인식하지 못해 어두운 테마 환경에서 밝은 스크롤바가 표시되는 등 시각적 불일치를 초래합니다. **조치:** 항상 HTML 문서의 `` 영역에 `` 메타 태그를 명시적으로 추가하여 브라우저 수준에서 사용자의 시스템 테마(다크 모드 등)를 완전히 상속받아 일관성 있는 네이티브 UI를 렌더링하도록 보장하십시오. +## 2026-07-15 - Accessible Empty State +**Learning:** Screen readers might not clearly announce an empty list on static HTML pages. Using `role="status"` alongside flexbox styling and icons ensures empty states are both visually consistent with the rest of the list and properly announced to screen readers. +**Action:** Always include `role="status"` and consistent visual cues (like icons) for empty states in list elements. diff --git a/src/main/kotlin/html4tree/main.kt b/src/main/kotlin/html4tree/main.kt index b455862..d72dfd1 100644 --- a/src/main/kotlin/html4tree/main.kt +++ b/src/main/kotlin/html4tree/main.kt @@ -304,6 +304,9 @@ fun process_dir(curr_dir: File, excludeSet: Set? = null, dirFiles: Array } } .empty-dir { + display: flex; + align-items: flex-start; + gap: 0.5rem; padding: 0.5rem; opacity: 0.7; font-style: italic; @@ -370,7 +373,7 @@ ${cssContent} } if(l.isEmpty()){ - l.append("""
  • 이 디렉토리는 비어 있습니다.
  • """) + l.append("""
  • 이 디렉토리는 비어 있습니다.
  • """) l.append('\n') } From f669314f66276c7112f7c4fa1a4c3aa136e715a2 Mon Sep 17 00:00:00 2001 From: seonghobae <8172694+seonghobae@users.noreply.github.com> Date: Wed, 15 Jul 2026 21:23:06 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20=EB=B9=88=20?= =?UTF-8?q?=EB=94=94=EB=A0=89=ED=86=A0=EB=A6=AC=20=EC=83=81=ED=83=9C?= =?UTF-8?q?=EC=9D=98=20=EC=A0=91=EA=B7=BC=EC=84=B1=20=EB=B0=8F=20=EC=8B=9C?= =?UTF-8?q?=EA=B0=81=EC=A0=81=20=EC=9D=BC=EA=B4=80=EC=84=B1=20=EA=B0=9C?= =?UTF-8?q?=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .jules/palette.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.jules/palette.md b/.jules/palette.md index 77c0ac5..5490b8d 100644 --- a/.jules/palette.md +++ b/.jules/palette.md @@ -48,6 +48,6 @@ ## 2024-08-01 - 네이티브 브라우저 UI의 다크 모드 지원 강제 **학습:** CSS 미디어 쿼리(`@media (prefers-color-scheme: dark)`)를 통해 다크 모드를 지원하더라도, 브라우저의 네이티브 UI 요소(스크롤바, 기본 폼 컨트롤, 기본 백그라운드 등)는 테마 변경을 인식하지 못해 어두운 테마 환경에서 밝은 스크롤바가 표시되는 등 시각적 불일치를 초래합니다. **조치:** 항상 HTML 문서의 `` 영역에 `` 메타 태그를 명시적으로 추가하여 브라우저 수준에서 사용자의 시스템 테마(다크 모드 등)를 완전히 상속받아 일관성 있는 네이티브 UI를 렌더링하도록 보장하십시오. -## 2026-07-15 - Accessible Empty State -**Learning:** Screen readers might not clearly announce an empty list on static HTML pages. Using `role="status"` alongside flexbox styling and icons ensures empty states are both visually consistent with the rest of the list and properly announced to screen readers. -**Action:** Always include `role="status"` and consistent visual cues (like icons) for empty states in list elements. +## 2026-07-15 - 접근 가능한 빈 상태 +**학습:** 스크린 리더는 정적 HTML 페이지에서 비어 있는 목록을 명확하게 안내하지 않을 수 있습니다. `role="status"`를 flexbox 스타일링 및 아이콘과 함께 사용하면 빈 상태가 목록의 나머지 부분과 시각적으로 일관되며 스크린 리더에도 적절하게 안내됩니다. +**조치:** 목록 요소의 빈 상태에 항상 `role="status"`와 시각적으로 일관된 단서(아이콘 등)를 포함하십시오. From e2e2da3c025a33dd95027db5e5afc8c364c6bcca Mon Sep 17 00:00:00 2001 From: seonghobae <8172694+seonghobae@users.noreply.github.com> Date: Wed, 15 Jul 2026 21:57:32 +0000 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20=EB=B9=88=20?= =?UTF-8?q?=EB=94=94=EB=A0=89=ED=86=A0=EB=A6=AC=20=EC=83=81=ED=83=9C?= =?UTF-8?q?=EC=9D=98=20=EC=A0=91=EA=B7=BC=EC=84=B1=20=EB=B0=8F=20=EC=8B=9C?= =?UTF-8?q?=EA=B0=81=EC=A0=81=20=EC=9D=BC=EA=B4=80=EC=84=B1=20=EA=B0=9C?= =?UTF-8?q?=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit