On this page, when restrictions in date are chosen, the date component can be entered in six input fields/select elements. These input fields have no visible labels. WCAG success criterion 3.3.2 Labels and Instructions says that sufficient labels for form field elements must be provided for all users (sighted and non-sighted). Now the sighted users have to guess the purpose of these elements.
EDIT: This affects every activity that supports date access restriction.
Steps to replicate:
- Login as Admin.
- Create a Course.
- Go to the Course and open the activity chooser.
- Add an activity
- In the 'Restrict access' section, click on "Add restriction..." and choose "Date"
- the date component does not have visible labels to the input fields.