source: frontend/node_modules/eslint-plugin-jsx-a11y/lib/util/getComputedRole.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago

Fix frontend appearance

  • Property mode set to 100644
File size: 707 bytes
RevLine 
[9af201e]1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports["default"] = getComputedRole;
7var _getExplicitRole = _interopRequireDefault(require("./getExplicitRole"));
8var _getImplicitRole = _interopRequireDefault(require("./getImplicitRole"));
9function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10/**
11 * Returns an element's computed role, which is
12 *
13 * 1. The valid value of its explicit role attribute; or
14 * 2. The implicit value of its tag.
15 */
16function getComputedRole(tag, attributes) {
17 return (0, _getExplicitRole["default"])(tag, attributes) || (0, _getImplicitRole["default"])(tag, attributes);
18}
19module.exports = exports.default;
Note: See TracBrowser for help on using the repository browser.