Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_cfg_common
Manage
Activity
Members
Labels
Code
Merge requests
12
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_cfg_common
Commits
91ab8367
Commit
91ab8367
authored
7 months ago
by
Igor Biki
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-6895: Accessibility fix for required webform range element.
parent
f29458ca
No related branches found
No related tags found
1 merge request
!453
ISTWCMS-6895: Accessibility fix for required webform range element.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
uw_cfg_common.module
+14
-0
14 additions, 0 deletions
uw_cfg_common.module
with
14 additions
and
0 deletions
uw_cfg_common.module
+
14
−
0
View file @
91ab8367
...
...
@@ -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'
]);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment