Skip to content

Commit ae9f53b

Browse files
committed
Merge branch 'develop' of https://github.com/wintercms/winter into develop
2 parents 8f6fb57 + 2a3029b commit ae9f53b

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
<!-- Date -->
2+
<?php /* The field's <label for> targets the hidden data-locker input, leaving this
3+
visible text box without an accessible name (WCAG 1.3.1 / 4.1.2). Name it directly. */ ?>
24
<div class="input-with-icon right-align">
3-
<i class="icon icon-calendar-o"></i>
5+
<i class="icon icon-calendar-o" aria-hidden="true"></i>
46
<input
57
type="text"
68
id="<?= $this->getId('date') ?>"
79
class="form-control align-right"
810
autocomplete="off"
11+
<?php if ($field->label): ?>
12+
aria-label="<?= e(trans($field->label)) ?>"
13+
<?php endif ?>
914
<?= $field->getAttributes() ?>
1015
data-datepicker />
1116
</div>
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
<!-- Time -->
2+
<?php /* Same as _picker_date.php — the field's <label for> targets the hidden data-locker
3+
input, leaving this visible text box without an accessible name (WCAG 1.3.1 / 4.1.2).
4+
"(time)" distinguishes it from the date box in datetime mode, where both share the label. */ ?>
25
<div class="input-with-icon right-align">
3-
<i class="icon icon-clock-o"></i>
6+
<i class="icon icon-clock-o" aria-hidden="true"></i>
47
<input
58
type="text"
69
id="<?= $this->getId('time') ?>"
710
class="form-control align-right"
811
autocomplete="off"
12+
<?php if ($field->label): ?>
13+
aria-label="<?= e(trans($field->label)) ?> (time)"
14+
<?php endif ?>
915
<?= $field->getAttributes() ?>
1016
data-timepicker />
1117
</div>

modules/backend/formwidgets/fileupload/partials/_file_single.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ class="field-fileupload style-file-single <?= $singleFile ? 'is-populated' : ''
1616
>
1717

1818
<!-- Upload Button -->
19+
<?php /* Core renders an icon-only button with no accessible name (WCAG 4.1.2). */ ?>
1920
<button type="button" class="btn btn-default upload-button">
20-
<i class="<?= e($iconClass) ?>"></i>
21+
<i class="<?= e($iconClass) ?>" aria-hidden="true"></i>
22+
<span class="sr-only"><?= e(trans('backend::lang.fileupload.upload_file')) ?></span>
2123
</button>
2224

2325
<!-- Existing file -->

0 commit comments

Comments
 (0)