Hide synopsis for the time being, add notes regarding accessible breadcrumbs

This commit is contained in:
Simon Repp
2025-08-11 16:35:56 +02:00
parent bf1a5ff325
commit bb0f75bfbd
3 changed files with 22 additions and 1 deletions
+10
View File
@@ -127,6 +127,11 @@ function initializeSiteTree() {
if (index > 0) {
const separator = document.createElement('span');
separator.appendChild(chevronRightIcon.cloneNode(true));
// TODO: Clarify what label works best for screen reader
// users to succinctly express "separator indicating
// going down the hierarchy" (respectively use a semantic
// construct around the "breadcrumbs" in which the
// separators are hidden from screenreaders instead).
separator.setAttribute('aria-label', '>');
spanTitle.appendChild(separator);
@@ -182,6 +187,11 @@ function initializeSiteTree() {
if (index > 0) {
const separator = document.createElement('span');
separator.appendChild(chevronRightIcon.cloneNode(true));
// TODO: Clarify what label works best for screen reader
// users to succinctly express "separator indicating
// going down the hierarchy" (respectively use a semantic
// construct around the "breadcrumbs" in which the
// separators are hidden from screenreaders instead).
separator.setAttribute('aria-label', '>');
spanTitle.appendChild(separator);
+8
View File
@@ -140,6 +140,14 @@ pub fn video_html(
let links_rendered = links(&site.language, &video.links);
// TODO: Expose/unhide synopsis if and when it makes sense again
// let synopsis = if let Some(synopsis) = &video.synopsis {
// let synopsis_escaped = html_escape_outside_attribute(synopsis);
// format!("<p>{synopsis_escaped}</p>")
// } else {
// String::new()
// };
let actions = if actions.is_empty() {
String::new()
} else {
+4 -1
View File
@@ -252,7 +252,10 @@ pub fn edit_page(
<div class="form_group">
<form action="{update_action}" autocomplete="off" data-warn-discard method="post">
{input_title}
{textarea_synopsis}
<!-- TODO: Expose/unhide synopsis if and when it makes sense again -->
<div style="height: 0; opacity: 0; width: 0;">
{textarea_synopsis}
</div>
{textarea_description}
<div class="form_split divide_3_1">
{input_release_date}