aboutsummaryrefslogtreecommitdiff
path: root/templates/sidebar
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2022-06-28 19:16:17 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2022-06-28 19:16:17 +0000
commitcac75e5aa8680d33db07b46074dcc0a87df81241 (patch)
tree339db4615e52343243da75bbea902b0151b9bf08 /templates/sidebar
parent12aebfb694feec20b019c649469362492c3d68c0 (diff)
fix for BIESt closes #519
Merge request studip/studip!664
Diffstat (limited to 'templates/sidebar')
-rw-r--r--templates/sidebar/list-widget.php2
-rw-r--r--templates/sidebar/options-widget-form.php2
-rw-r--r--templates/sidebar/select-widget.php3
-rw-r--r--templates/sidebar/sidebar.php2
4 files changed, 5 insertions, 4 deletions
diff --git a/templates/sidebar/list-widget.php b/templates/sidebar/list-widget.php
index b396455..0507cfa 100644
--- a/templates/sidebar/list-widget.php
+++ b/templates/sidebar/list-widget.php
@@ -1,4 +1,4 @@
-<ul class="<?= implode(' ', $css_classes) ?>">
+<ul class="<?= implode(' ', $css_classes) ?>" aria-label="<?= htmlReady($title) ?>">
<? foreach ($elements as $index => $element): ?>
<? if ($element instanceof LinkElement): ?>
<? $icon = $element->icon ?? null ?>
diff --git a/templates/sidebar/options-widget-form.php b/templates/sidebar/options-widget-form.php
index 0c6e212..5dc91f2 100644
--- a/templates/sidebar/options-widget-form.php
+++ b/templates/sidebar/options-widget-form.php
@@ -21,7 +21,7 @@
<? elseif ($element['type'] == 'select'): ?>
<label>
<?= htmlReady($element['label']) ?>
- <select name="<?= htmlReady($element['name']) ?>">
+ <select name="<?= htmlReady($element['name']) ?>" aria-label="<?= htmlReady($title) ?>">
<? foreach ($element['options'] as $key => $name): ?>
<option value="<?= htmlReady($key) ?>">
<?= htmlReady($name) ?>
diff --git a/templates/sidebar/select-widget.php b/templates/sidebar/select-widget.php
index 73d2315..cadd277 100644
--- a/templates/sidebar/select-widget.php
+++ b/templates/sidebar/select-widget.php
@@ -2,7 +2,8 @@
<?= \SelectWidget::arrayToHiddenInput($params) ?>
<?= (strtolower($method) == 'post') ? CSRFProtection::tokenTag() : ''; ?>
<select class="sidebar-selectlist <?= $class ?> <? if ($__is_nested): ?>nested-select<? endif; ?>" <? !empty($size) ? printf('size="%u"', $size) : '' ?> <?= !empty($attributes) ? arrayToHtmlAttributes($attributes) : '' ?>
- name="<?= sprintf('%s%s', htmlReady($name), $multiple ? '[]' : '') ?>" <? if ($multiple) echo 'multiple'; ?>>
+ name="<?= sprintf('%s%s', htmlReady($name), $multiple ? '[]' : '') ?>" <? if ($multiple) echo 'multiple'; ?>
+ aria-label="<?= htmlReady($title) ?>">
<? foreach ($elements as $element): ?>
<? if ($element instanceof SelectGroupElement && count($element->getElements()) > 0): ?>
diff --git a/templates/sidebar/sidebar.php b/templates/sidebar/sidebar.php
index a624596..3c28062 100644
--- a/templates/sidebar/sidebar.php
+++ b/templates/sidebar/sidebar.php
@@ -1,5 +1,5 @@
<div id="layout-sidebar">
- <section class="sidebar">
+ <section class="sidebar" role="complementary" aria-label="<?= _('Seitenleiste') ?>">
<div class="sidebar-image <? if ($avatar) echo 'sidebar-image-with-context'; ?>">
<? if ($avatar) : ?>
<div class="sidebar-context">