@popmenu/dashboard 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 CHANGED
@@ -241,6 +241,10 @@ var classNames = classnames.exports;
241
241
  var iconStaticClassName = 'pop-icon';
242
242
  var Icon = function (props) {
243
243
  var icon = props.icon, className = props.className, restProps = __rest(props, ["icon", "className"]);
244
+ var hasAccessibleAttr = Boolean(restProps['aria-describedby'] || restProps['aria-label']);
245
+ if (!hasAccessibleAttr && restProps['aria-hidden'] === undefined) {
246
+ restProps['aria-hidden'] = true;
247
+ }
244
248
  var classes = useIconStyles(props);
245
249
  var isValid = true;
246
250
  if (!icon || (typeof icon === 'function' && icon({}) === undefined)) {