@popmenu/table 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.js CHANGED
@@ -419,7 +419,8 @@ var classNames = classnames$2.exports;
419
419
  var iconStaticClassName$1 = 'pop-icon';
420
420
  var Icon$1 = function (props) {
421
421
  var icon = props.icon, className = props.className, restProps = __rest$2(props, ["icon", "className"]);
422
- if (!restProps['aria-label'] && restProps['aria-hidden'] === undefined) {
422
+ var hasAccessibleAttr = Boolean(restProps['aria-describedby'] || restProps['aria-label']);
423
+ if (!hasAccessibleAttr && restProps['aria-hidden'] === undefined) {
423
424
  restProps['aria-hidden'] = true;
424
425
  }
425
426
  var classes = useIconStyles$1(props);
@@ -1680,7 +1681,8 @@ var classNames$1 = classnames$1.exports;
1680
1681
  var iconStaticClassName = 'pop-icon';
1681
1682
  var Icon = function (props) {
1682
1683
  var icon = props.icon, className = props.className, restProps = __rest(props, ["icon", "className"]);
1683
- if (!restProps['aria-label'] && restProps['aria-hidden'] === undefined) {
1684
+ var hasAccessibleAttr = Boolean(restProps['aria-describedby'] || restProps['aria-label']);
1685
+ if (!hasAccessibleAttr && restProps['aria-hidden'] === undefined) {
1684
1686
  restProps['aria-hidden'] = true;
1685
1687
  }
1686
1688
  var classes = useIconStyles(props);