Skip to content

Commit e3b1ebb

Browse files
GiteaBotbrechtvllunny
authored
Scoped labels: set aria-disabled on muted Exclusive option for a11y (#23306) (#23311)
Backport #23306 It is convenient to be able to toggle off this option after removing / from the name. This ensures the muted state is communicated to blind users even when the input is not fully disabled. Part of #22974 Co-authored-by: Brecht Van Lommel <brecht@blender.org> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
1 parent 17ae7e3 commit e3b1ebb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

web_src/js/features/comp/LabelEdit.js

+2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ function updateExclusiveLabelEdit(form) {
1313

1414
if (isExclusiveScopeName(nameInput.val())) {
1515
exclusiveField.removeClass('muted');
16+
exclusiveField.removeAttr('aria-disabled');
1617
if (exclusiveCheckbox.prop('checked') && exclusiveCheckbox.data('exclusive-warn')) {
1718
exclusiveWarning.removeClass('gt-hidden');
1819
} else {
1920
exclusiveWarning.addClass('gt-hidden');
2021
}
2122
} else {
2223
exclusiveField.addClass('muted');
24+
exclusiveField.attr('aria-disabled', 'true');
2325
exclusiveWarning.addClass('gt-hidden');
2426
}
2527
}

0 commit comments

Comments
 (0)