@popmenu/admin-ui 0.87.0 → 0.89.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 CHANGED
@@ -294,7 +294,8 @@ var classNames$1 = classnames$1.exports;
294
294
  var iconStaticClassName = 'pop-icon';
295
295
  var Icon = function (props) {
296
296
  var icon = props.icon, className = props.className, restProps = __rest(props, ["icon", "className"]);
297
- if (!restProps['aria-label'] && restProps['aria-hidden'] === undefined) {
297
+ var hasAccessibleAttr = Boolean(restProps['aria-describedby'] || restProps['aria-label']);
298
+ if (!hasAccessibleAttr && restProps['aria-hidden'] === undefined) {
298
299
  restProps['aria-hidden'] = true;
299
300
  }
300
301
  var classes = useIconStyles(props);