MCPcopy Create free account
hub / github.com/docker/getting-started / isRequiredForA11y

Function isRequiredForA11y

app/src/static/js/react-bootstrap.js:1126–1141  ·  view source on GitHub ↗
(validator)

Source from the content-addressed store, hash-verified

1124exports.default = isRequiredForA11y;
1125
1126function isRequiredForA11y(validator) {
1127 return function validate(props, propName, componentName, location, propFullName) {
1128 var componentNameSafe = componentName || '<<anonymous>>';
1129 var propFullNameSafe = propFullName || propName;
1130
1131 if (props[propName] == null) {
1132 return new Error('The ' + location + ' `' + propFullNameSafe + '` is required to make ' + ('`' + componentNameSafe + '` accessible for users of assistive ') + 'technologies such as screen readers.');
1133 }
1134
1135 for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) {
1136 args[_key - 5] = arguments[_key];
1137 }
1138
1139 return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args));
1140 };
1141}
1142
1143module.exports = exports['default'];
1144

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…