source: frontend/node_modules/eslint-plugin-jsx-a11y/lib/util/isPresentationRole.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: 499 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports["default"] = void 0;
7var _jsxAstUtils = require("jsx-ast-utils");
8var presentationRoles = new Set(['presentation', 'none']);
9var isPresentationRole = function isPresentationRole(tagName, attributes) {
10 return presentationRoles.has((0, _jsxAstUtils.getLiteralPropValue)((0, _jsxAstUtils.getProp)(attributes, 'role')));
11};
12var _default = exports["default"] = isPresentationRole;
13module.exports = exports.default;
Note: See TracBrowser for help on using the repository browser.