Skip to content
Snippets Groups Projects
Commit 91ab8367 authored by Igor Biki's avatar Igor Biki
Browse files

ISTWCMS-6895: Accessibility fix for required webform range element.

parent f29458ca
No related branches found
No related tags found
1 merge request!453ISTWCMS-6895: Accessibility fix for required webform range element.
......@@ -327,3 +327,17 @@ function _uw_cfg_common_get_faculty_color_options(): array {
'org-stp' => t('Blue (United College)'),
];
}
/**
* Implements hook_preprocess().
*
* This fixes accessibility issue where SI reports
* "using aria-required on input" validation.
*
* See https://uwaterloo.atlassian.net/browse/ISTWCMS-6895.
*/
function uw_cfg_common_preprocess_input__range(&$variables) {
if (isset($variables['attributes']['aria-required'])) {
unset($variables['attributes']['aria-required']);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment