Skip to content

Commit

Permalink
VACMS-19162: Ensure repeat-end dropdown does not exist on the page. (#…
Browse files Browse the repository at this point in the history
…20344)

* VACMS-19162: Ensure repeat-end dropdown does not exist on the page. This ensures that screen readers cannot see it, and editors cannot change the default value.

* VACMS-19162: Actually hide the repeat-end element from screen readers.
  • Loading branch information
dsasser authored Jan 27, 2025
1 parent b9365f9 commit 7145cee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public function modifyRecurringEventsWidgetFieldPresentation(array &$form): void

// Remove states management now handled by custom js.
unset($form['field_datetime_range_timezone']['widget'][0]['interval']['#states']);
unset($form['field_datetime_range_timezone']['widget'][0]['repeat-end']['#states']);
unset($form['field_datetime_range_timezone']['widget'][0]['repeat-end-date']['#states']);
unset($form['field_datetime_range_timezone']['widget'][0]['repeat-advanced']['#states']);
unset($form['field_datetime_range_timezone']['widget'][0]['repeat-advanced']['by-day']['#states']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,8 @@
}

.form-item--field-datetime-range-timezone-0-repeat-end {
left: -1000px;
margin: 10px 0 0;
position: absolute;
display: none;
visibility: hidden;
}

#manage-instances-faux-button-span {
Expand Down

0 comments on commit 7145cee

Please sign in to comment.