@popmenu/audio-player 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 +2 -1
- package/build/index.es.js.map +1 -1
- package/build/index.js +2 -1
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.es.js
CHANGED
|
@@ -396,7 +396,8 @@ var classNames = classnames.exports;
|
|
|
396
396
|
var iconStaticClassName = 'pop-icon';
|
|
397
397
|
var Icon = function (props) {
|
|
398
398
|
var icon = props.icon, className = props.className, restProps = __rest(props, ["icon", "className"]);
|
|
399
|
-
|
|
399
|
+
var hasAccessibleAttr = Boolean(restProps['aria-describedby'] || restProps['aria-label']);
|
|
400
|
+
if (!hasAccessibleAttr && restProps['aria-hidden'] === undefined) {
|
|
400
401
|
restProps['aria-hidden'] = true;
|
|
401
402
|
}
|
|
402
403
|
var classes = useIconStyles(props);
|