Skip to content
Snippets Groups Projects

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

1 file
+ 14
0
Compare changes
  • Side-by-side
  • Inline
+ 14
0
@@ -336,3 +336,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']);
}
}
Loading