Commit 26269bc6 authored by Ethan Teague's avatar Ethan Teague Committed by John Voskuilen
Browse files

Issue #3273363 by EthanT, johnv: Accessibility warnings by missing labels in Widget table cells

parent 24070c3c
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -43,10 +43,9 @@ class OfficeHoursWeekSlot extends OfficeHoursBaseSlot {

    // Override (hide) the 'day' select-field.
    $element['day'] = [
      '#type' => 'hidden',
      '#prefix' => $day_delta
        ? "<div class='office-hours-more-label'>$label</div>"
        : "<div class='office-hours-label'>$label</div>",
      // For accessibility (a11y) screen readers, a header/title is introduced.
      '#title' => $label,
      '#type' => 'item',
      '#default_value' => $day,
      '#value' => $day,
    ];