Support » Plugin: Events Manager » [Plugin: Events Manager] Passing accessibility tests

  • We are a state agency, and our interface needs to pass accessibility tests.

    To do so, I have added label tags to the form fields in copies of templates I put in my theme. Thank you for providing such a high level of customizability!

    There is one last thing needed, and that is to allow entry into the datepicker form fields (such as start date and end date). This is for people using screen readers. I asked our software consultant, Boone Gorges, to look into that, and here is what he suggested:

    – – –

    Currently, the plugin isn’t passing a value for ‘constrainInput’ to jquery-ui datepicker, which means that it defaults to true, which in turn means that no text can be entered in the text field.

    For example, this is the code around line 418 in events-manager/includes/js/events-manager.js:

    var datepicker_vals = { altFormat: “yy-mm-dd”, changeMonth: true, changeYear: true, firstDay : EM.firstDay };

    One option is simply to add ‘constrainInput: false’ for all uses of the datepicker, and then to use strtotime() server-side to process user input.

    Alternatively, the plugin could allow admins to set this value to false by adding a constrainInput item to the wp_localize_script() array in EM_Scripts_and_Styles::localize_script(), which would default to true.

    Then, use that value when putting together the datepicker values:

    constrainInput: EM.constrainInput

    It should then be possible to filter ’em_event_validate_meta’ to do any necessary custom parsing of entered date data.

    – – –

    So, I hope that is helpful. Other than this final issue, the plugin code passes WAVE and aChecker with flying colors!

  • The topic ‘[Plugin: Events Manager] Passing accessibility tests’ is closed to new replies.