@@ -93,9 +93,9 @@ pub fn render_main_page_wrapper(content: &str) -> String { |
93 | 93 | html.push_str(" <a href=\"/peers\" data-nav class=\"crt-glow\">peers</a>\n"); |
94 | 94 | html.push_str(" <a href=\"/settings\" data-nav class=\"crt-glow\">settings</a>\n"); |
95 | 95 | html.push_str(" <span class=\"flex items-center gap-1\">\n"); |
96 | | - html.push_str(" <button class=\"theme-btn\" data-theme=\"sneak\" title=\"Sneak theme\"></button>\n"); |
97 | | - html.push_str(" <button class=\"theme-btn\" data-theme=\"arch\" title=\"Arch theme\"></button>\n"); |
98 | | - html.push_str(" <button class=\"theme-btn\" data-theme=\"mech\" title=\"Mech theme\"></button>\n"); |
| 96 | + html.push_str(" <button class=\"theme-btn\" data-theme=\"sneak\" title=\"Sneak theme\" aria-label=\"Sneak theme\"></button>\n"); |
| 97 | + html.push_str(" <button class=\"theme-btn\" data-theme=\"arch\" title=\"Arch theme\" aria-label=\"Arch theme\"></button>\n"); |
| 98 | + html.push_str(" <button class=\"theme-btn\" data-theme=\"mech\" title=\"Mech theme\" aria-label=\"Mech theme\"></button>\n"); |
99 | 99 | html.push_str(" </span>\n"); |
100 | 100 | html.push_str(" </nav>\n"); |
101 | 101 | html.push_str(" </header>\n"); |
@@ -458,9 +458,9 @@ pub fn render_editor(doc_id: &str, name: &str, content: &str, hash: &str) -> Str |
458 | 458 | html.push_str(" <a href=\"/peers\" data-nav>peers</a>\n"); |
459 | 459 | html.push_str(" <a href=\"/settings\" data-nav>settings</a>\n"); |
460 | 460 | html.push_str(" <span class=\"flex items-center gap-1\">\n"); |
461 | | - html.push_str(" <button class=\"theme-btn\" data-theme=\"sneak\" title=\"Sneak theme\"></button>\n"); |
462 | | - html.push_str(" <button class=\"theme-btn\" data-theme=\"arch\" title=\"Arch theme\"></button>\n"); |
463 | | - html.push_str(" <button class=\"theme-btn\" data-theme=\"mech\" title=\"Mech theme\"></button>\n"); |
| 461 | + html.push_str(" <button class=\"theme-btn\" data-theme=\"sneak\" title=\"Sneak theme\" aria-label=\"Sneak theme\"></button>\n"); |
| 462 | + html.push_str(" <button class=\"theme-btn\" data-theme=\"arch\" title=\"Arch theme\" aria-label=\"Arch theme\"></button>\n"); |
| 463 | + html.push_str(" <button class=\"theme-btn\" data-theme=\"mech\" title=\"Mech theme\" aria-label=\"Mech theme\"></button>\n"); |
464 | 464 | html.push_str(" </span>\n"); |
465 | 465 | html.push_str(" </nav>\n"); |
466 | 466 | html.push_str(" </div>\n"); |
@@ -474,7 +474,7 @@ pub fn render_editor(doc_id: &str, name: &str, content: &str, hash: &str) -> Str |
474 | 474 | html.push_str(" <span class=\"flex items-center gap-1\" id=\"tag-add-inline\">\n"); |
475 | 475 | html.push_str(" <input type=\"text\" id=\"tag-add-key\" class=\"input input-bordered input-xs w-20 bg-base-100\" placeholder=\"key\" />\n"); |
476 | 476 | html.push_str(" <input type=\"text\" id=\"tag-add-value\" class=\"input input-bordered input-xs w-20 bg-base-100\" placeholder=\"value\" />\n"); |
477 | | - html.push_str(" <button class=\"btn btn-ghost btn-xs font-mono\" onclick=\"window.idApp?.addTagInline?.()\">+</button>\n"); |
| 477 | + html.push_str(" <button class=\"btn btn-ghost btn-xs font-mono\" aria-label=\"Add tag\" onclick=\"window.idApp?.addTagInline?.()\">+</button>\n"); |
478 | 478 | html.push_str(" </span>\n"); |
479 | 479 | html.push_str(" </div>\n"); |
480 | 480 |
|
|