@popmenu/table 0.87.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
@@ -370,7 +370,8 @@ var classNames = classnames$2.exports;
370
370
  var iconStaticClassName$1 = 'pop-icon';
371
371
  var Icon$1 = function (props) {
372
372
  var icon = props.icon, className = props.className, restProps = __rest$2(props, ["icon", "className"]);
373
- if (!restProps['aria-label'] && restProps['aria-hidden'] === undefined) {
373
+ var hasAccessibleAttr = Boolean(restProps['aria-describedby'] || restProps['aria-label']);
374
+ if (!hasAccessibleAttr && restProps['aria-hidden'] === undefined) {
374
375
  restProps['aria-hidden'] = true;
375
376
  }
376
377
  var classes = useIconStyles$1(props);
@@ -1631,7 +1632,8 @@ var classNames$1 = classnames$1.exports;
1631
1632
  var iconStaticClassName = 'pop-icon';
1632
1633
  var Icon = function (props) {
1633
1634
  var icon = props.icon, className = props.className, restProps = __rest(props, ["icon", "className"]);
1634
- if (!restProps['aria-label'] && restProps['aria-hidden'] === undefined) {
1635
+ var hasAccessibleAttr = Boolean(restProps['aria-describedby'] || restProps['aria-label']);
1636
+ if (!hasAccessibleAttr && restProps['aria-hidden'] === undefined) {
1635
1637
  restProps['aria-hidden'] = true;
1636
1638
  }
1637
1639
  var classes = useIconStyles(props);