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