@popmenu/ordering-ui 0.86.0 → 0.87.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.es.js +7 -6
- package/build/index.es.js.map +1 -1
- package/build/index.js +7 -6
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.es.js
CHANGED
|
@@ -623,6 +623,9 @@ var classNames$1 = classnames$1.exports;
|
|
|
623
623
|
var iconStaticClassName = 'pop-icon';
|
|
624
624
|
var Icon = function (props) {
|
|
625
625
|
var icon = props.icon, className = props.className, restProps = __rest(props, ["icon", "className"]);
|
|
626
|
+
if (!restProps['aria-label'] && restProps['aria-hidden'] === undefined) {
|
|
627
|
+
restProps['aria-hidden'] = true;
|
|
628
|
+
}
|
|
626
629
|
var classes = useIconStyles(props);
|
|
627
630
|
var isValid = true;
|
|
628
631
|
if (!icon || (typeof icon === 'function' && icon({}) === undefined)) {
|
|
@@ -2040,9 +2043,9 @@ var useStyles$2 = makeStyles$1(function () { return ({
|
|
|
2040
2043
|
var MenuSection = forwardRef(function (props, ref) {
|
|
2041
2044
|
var name = props.name, children = props.children, restProps = __rest$1(props, ["name", "children"]);
|
|
2042
2045
|
var classes = useStyles$2();
|
|
2043
|
-
return (React__default.createElement(Box, __assign$1({}, restProps, { ref: ref }, { "data-component-type": "menu-section" }),
|
|
2046
|
+
return (React__default.createElement(Box, __assign$1({}, restProps, { ref: ref, component: 'section' }, { "data-component-type": "menu-section" }),
|
|
2044
2047
|
React__default.createElement(Box, { marginTop: 1, marginBottom: 4 },
|
|
2045
|
-
React__default.createElement(Typography$1, { className: classes.title }, name)),
|
|
2048
|
+
React__default.createElement(Typography$1, { component: "h2", className: classes.title }, name)),
|
|
2046
2049
|
children));
|
|
2047
2050
|
});
|
|
2048
2051
|
MenuSection.displayName = 'MenuSection';
|
|
@@ -2083,7 +2086,7 @@ var DialogTitle = function (props) {
|
|
|
2083
2086
|
return (React__default.createElement(DialogTitle$1, null,
|
|
2084
2087
|
React__default.createElement(Box, { display: "flex", alignItems: "center", gridGap: 16 },
|
|
2085
2088
|
Icon && Icon,
|
|
2086
|
-
React__default.createElement(Typography$1, { variant: "h6" }, title)),
|
|
2089
|
+
React__default.createElement(Typography$1, { component: "h1", variant: "h6" }, title)),
|
|
2087
2090
|
React__default.createElement(IconButton$1, { color: "inherit", className: classes.closeButton, "aria-label": "Close dialog", onClick: onClose },
|
|
2088
2091
|
React__default.createElement(SvgX, null))));
|
|
2089
2092
|
};
|
|
@@ -2177,9 +2180,7 @@ var overrides = {
|
|
|
2177
2180
|
textTransform: 'none',
|
|
2178
2181
|
padding: '18px 16px',
|
|
2179
2182
|
},
|
|
2180
|
-
outlined: {
|
|
2181
|
-
padding: 'inherit',
|
|
2182
|
-
},
|
|
2183
|
+
outlined: {},
|
|
2183
2184
|
textPrimary: {
|
|
2184
2185
|
color: '#0076CB',
|
|
2185
2186
|
},
|