diff --git a/.jules/palette.md b/.jules/palette.md new file mode 100644 index 0000000000..d9b0651bb8 --- /dev/null +++ b/.jules/palette.md @@ -0,0 +1,4 @@ +## 2026-10-30 - Server-Rendered Template Action Buttons Missing ARIA Labels + +**Learning:** Server-rendered HTML templates generating compact/action buttons (like `save`, `rename`, `copy`, or `clear`) often include visual text labels or `title` tooltips but lack explicit `aria-label` attributes. Screen reader users navigating by interactive controls or relying on accessible names need `aria-label` attributes to ensure consistent screen reader announcement across browser environments. +**Action:** When inspecting or adding buttons in Rust HTML templates (`pkgs/id/src/web/templates.rs`), ensure every icon-only or shortened textual action button explicitly defines an `aria-label` describing the action. diff --git a/pkgs/id/src/web/templates.rs b/pkgs/id/src/web/templates.rs index b323295336..e855856b68 100644 --- a/pkgs/id/src/web/templates.rs +++ b/pkgs/id/src/web/templates.rs @@ -204,8 +204,8 @@ pub fn render_file_list_content(page: &FileListPage) -> String { html.push_str("0 selected"); html.push_str(""); html.push_str(""); - html.push_str(""); - html.push_str(""); + html.push_str(""); + html.push_str(""); html.push_str(""); html.push_str("