|
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:
528 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 | exports["default"] = getImplicitRoleForMenu;
|
|---|
| 7 | var _jsxAstUtils = require("jsx-ast-utils");
|
|---|
| 8 | /**
|
|---|
| 9 | * Returns the implicit role for a menu tag.
|
|---|
| 10 | */
|
|---|
| 11 | function getImplicitRoleForMenu(attributes) {
|
|---|
| 12 | var type = (0, _jsxAstUtils.getProp)(attributes, 'type');
|
|---|
| 13 | if (type) {
|
|---|
| 14 | var value = (0, _jsxAstUtils.getLiteralPropValue)(type);
|
|---|
| 15 | return value && value.toUpperCase() === 'TOOLBAR' ? 'toolbar' : '';
|
|---|
| 16 | }
|
|---|
| 17 | return '';
|
|---|
| 18 | }
|
|---|
| 19 | module.exports = exports.default; |
|---|
Note:
See
TracBrowser
for help on using the repository browser.