File tree Expand file tree Collapse file tree
modules/backend/formwidgets Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff 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 -->
You can’t perform that action at this time.
0 commit comments