mirror of
https://codeberg.org/simonrepp/hyper8.git
synced 2026-08-14 13:45:27 +02:00
Hide synopsis for the time being, add notes regarding accessible breadcrumbs
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user