Skip to content
Snippets Groups Projects
Commit be521fa6 authored by Moritz Strohm's avatar Moritz Strohm
Browse files

fix for BIESt 4048, closes #4048

Closes #4048

Merge request studip/studip!3074
parent 3e485408
No related branches found
No related tags found
No related merge requests found
......@@ -4,8 +4,11 @@
<? foreach ($GLOBALS['PERS_TERMIN_KAT'] as $index => $data): ?>
<span>
<input type="radio" name="entry_color" value="<?= $index ?>" id="color-<?= $index ?>"
<? if ($index == $selected) echo 'checked'; ?>>
<label class="undecorated schedule-category<?= $index ?>" for="color-<?= $index ?>"></label>
<?= $index === $selected ? 'checked' : '' ?>>
<label class="undecorated schedule-category<?= $index ?> enter-accessible"
for="color-<?= $index ?>"
aria-label="<?= sprintf(_('Farbe %u zuordnen'), $index) ?>"
title="<?= sprintf(_('Farbe %u zuordnen'), $index) ?>"></label>
</span>
<? endforeach; ?>
</div>
......
......@@ -185,10 +185,6 @@ td.schedule-adminbind {
}
#color_picker {
div {
display: flex;
flex-wrap: wrap;
}
span {
flex: 0 0 auto;
......@@ -198,7 +194,7 @@ td.schedule-adminbind {
}
input[type="radio"] {
display: none;
@extend .sr-only;
&:checked + label {
outline: 1px solid var(--black);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment