@popmenu/admin-ui 0.86.0 → 0.88.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 +4 -0
- package/build/index.es.js.map +1 -1
- package/build/index.js +4 -0
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -345,6 +345,10 @@ var classNames$1 = classnames$1.exports;
|
|
|
345
345
|
var iconStaticClassName = 'pop-icon';
|
|
346
346
|
var Icon = function (props) {
|
|
347
347
|
var icon = props.icon, className = props.className, restProps = __rest(props, ["icon", "className"]);
|
|
348
|
+
var hasAccessibleAttr = Boolean(restProps['aria-describedby'] || restProps['aria-label']);
|
|
349
|
+
if (!hasAccessibleAttr && restProps['aria-hidden'] === undefined) {
|
|
350
|
+
restProps['aria-hidden'] = true;
|
|
351
|
+
}
|
|
348
352
|
var classes = useIconStyles(props);
|
|
349
353
|
var isValid = true;
|
|
350
354
|
if (!icon || (typeof icon === 'function' && icon({}) === undefined)) {
|