@popmenu/table 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 +8 -0
- package/build/index.es.js.map +1 -1
- package/build/index.js +8 -0
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -419,6 +419,10 @@ 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
|
+
var hasAccessibleAttr = Boolean(restProps['aria-describedby'] || restProps['aria-label']);
|
|
423
|
+
if (!hasAccessibleAttr && restProps['aria-hidden'] === undefined) {
|
|
424
|
+
restProps['aria-hidden'] = true;
|
|
425
|
+
}
|
|
422
426
|
var classes = useIconStyles$1(props);
|
|
423
427
|
var isValid = true;
|
|
424
428
|
if (!icon || (typeof icon === 'function' && icon({}) === undefined)) {
|
|
@@ -1677,6 +1681,10 @@ var classNames$1 = classnames$1.exports;
|
|
|
1677
1681
|
var iconStaticClassName = 'pop-icon';
|
|
1678
1682
|
var Icon = function (props) {
|
|
1679
1683
|
var icon = props.icon, className = props.className, restProps = __rest(props, ["icon", "className"]);
|
|
1684
|
+
var hasAccessibleAttr = Boolean(restProps['aria-describedby'] || restProps['aria-label']);
|
|
1685
|
+
if (!hasAccessibleAttr && restProps['aria-hidden'] === undefined) {
|
|
1686
|
+
restProps['aria-hidden'] = true;
|
|
1687
|
+
}
|
|
1680
1688
|
var classes = useIconStyles(props);
|
|
1681
1689
|
var isValid = true;
|
|
1682
1690
|
if (!icon || (typeof icon === 'function' && icon({}) === undefined)) {
|