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 @@ ...@@ -4,8 +4,11 @@
<? foreach ($GLOBALS['PERS_TERMIN_KAT'] as $index => $data): ?> <? foreach ($GLOBALS['PERS_TERMIN_KAT'] as $index => $data): ?>
<span> <span>
<input type="radio" name="entry_color" value="<?= $index ?>" id="color-<?= $index ?>" <input type="radio" name="entry_color" value="<?= $index ?>" id="color-<?= $index ?>"
<? if ($index == $selected) echo 'checked'; ?>> <?= $index === $selected ? 'checked' : '' ?>>
<label class="undecorated schedule-category<?= $index ?>" for="color-<?= $index ?>"></label> <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> </span>
<? endforeach; ?> <? endforeach; ?>
</div> </div>
......
...@@ -185,10 +185,6 @@ td.schedule-adminbind { ...@@ -185,10 +185,6 @@ td.schedule-adminbind {
} }
#color_picker { #color_picker {
div {
display: flex;
flex-wrap: wrap;
}
span { span {
flex: 0 0 auto; flex: 0 0 auto;
...@@ -198,7 +194,7 @@ td.schedule-adminbind { ...@@ -198,7 +194,7 @@ td.schedule-adminbind {
} }
input[type="radio"] { input[type="radio"] {
display: none; @extend .sr-only;
&:checked + label { &:checked + label {
outline: 1px solid var(--black); 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