From 7eb656dd0a461f2782e601753ee96736b7ef0d3c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 30 Jul 2021 14:16:58 +0200 Subject: do not mis-use aria-label; use aria-hidden and CSS content clipping instead --- templates/app.html.ep | 26 +++++++++++++++----------- templates/layouts/app.html.ep | 10 +++++----- templates/layouts/legacy.html.ep | 2 +- 3 files changed, 21 insertions(+), 17 deletions(-) (limited to 'templates') diff --git a/templates/app.html.ep b/templates/app.html.ep index 07c78bf..852d8a8 100644 --- a/templates/app.html.ep +++ b/templates/app.html.ep @@ -84,38 +84,40 @@ % } % if ($departure->{sched_departure}) { - + + nach %= $departure->{destination} % } % else { - + + von %= $departure->{origin} % } % if ($departure->{delay} and not $departure->{is_cancelled}) { -% my $aria_delay = sprintf("Verspätung %d Minuten", $departure->{delay}); % if ($show_realtime) { % if ($departure->{delay} > 0) { - (+<%= $departure->{delay} %>) + % } % else { - (<%= $departure->{delay} %>) + % } % } % else { % if ($departure->{delay} > 0) { - (+<%= $departure->{delay} %>) + % } % else { - (<%= $departure->{delay} %>) + % } % } % } % elsif ($departure->{missing_realtime}) { - + Echtzeitdaten fehlen + % } % if (param('detailed')) { % my $arrow = '→'; @@ -139,11 +141,12 @@ % if (($departure->{scheduled_platform} and $departure->{platform} and % $departure->{scheduled_platform} ne $departure->{platform}) % or $departure->{changed_platform}) { - + % } % else { - + % } + Gleis %= $departure->{platform} % if ($departure->{info} and length $departure->{info}) { @@ -152,7 +155,8 @@ % } % else { - + + über %= $route_str % } diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep index e6b03ae..664db64 100644 --- a/templates/layouts/app.html.ep +++ b/templates/layouts/app.html.ep @@ -18,7 +18,7 @@ % } - % my $av = 'v55'; # asset version + % my $av = 'v56'; # asset version % if (session('theme') and session('theme') eq 'dark' or param('dark')) { %= stylesheet "/static/${av}/css/dark.min.css", id => 'theme' % } @@ -84,15 +84,15 @@ % } diff --git a/templates/layouts/legacy.html.ep b/templates/layouts/legacy.html.ep index ce4d507..2d2af1d 100644 --- a/templates/layouts/legacy.html.ep +++ b/templates/layouts/legacy.html.ep @@ -17,7 +17,7 @@ % } - % my $av = 'v55'; # asset version + % my $av = 'v56'; # asset version %= stylesheet "/static/${av}/css/default.css" %= stylesheet "/static/${av}/css/material-icons.css" %= stylesheet "/static/${av}/css/jquery-ui.min.css" -- cgit v1.2.3