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
Merge requests
!453
ISTWCMS-6895: Accessibility fix for required webform range element.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
ISTWCMS-6895: Accessibility fix for required webform range element.
feature/ISTWCMS-6895-ibiki-webform_range_element_accessibility
into
1.1.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Open
Igor Biki
requested to merge
feature/ISTWCMS-6895-ibiki-webform_range_element_accessibility
into
1.1.x
7 months ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
👍
0
👎
0
Merge request reports
Compare
1.1.x
version 1
91ab8367
7 months ago
1.1.x (HEAD)
and
latest version
latest version
91ab8367
1 commit,
5 months ago
version 1
91ab8367
1 commit,
7 months ago
1 file
+
14
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
uw_cfg_common.module
+
14
−
0
Options
@@ -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