Enlarge participant headings and make theme switch icon-only
CI / Deploy / test (push) Successful in 45s
CI / Deploy / deploy (push) Skipped

The slide heading on the participant page was smaller than a regular h1
on phones. The theme switch now shows only its icon; the current and
next scheme stay available as aria-label and tooltip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-07 16:48:59 +01:00
1 parent 4eed568a64
commit 1cb439de18
3 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -1,6 +1,7 @@
<?php
/**
* Button that cycles the colour scheme (wired up by webroot/js/plenario.js `Theme`).
* Icon-only button that cycles the colour scheme (wired up by webroot/js/plenario.js `Theme`);
* the current and next scheme are in aria-label and title.
* Without JavaScript it stays hidden, the system setting applies.
*
* @var \App\View\AppView $this
@@ -18,7 +19,6 @@ $class ??= 'theme-switch';
data-label-prefix="<?= __('Farbschema') ?>" data-label-next="<?= __('wechseln zu') ?>"
<?= !empty($shortcut) ? 'aria-keyshortcuts="' . h($shortcut) . '"' : '' ?>>
<span class="theme-switch__icon" aria-hidden="true" data-theme-icon></span>
<span data-theme-label></span>
<?php if (!empty($shortcut)) : ?>
<kbd class="ctrl__key" aria-hidden="true">[<?= h($shortcut) ?>]</kbd>
<?php endif; ?>