|
|
|
@ -27,6 +27,7 @@ export default class IconButton extends React.PureComponent {
|
|
|
|
|
counter: PropTypes.number,
|
|
|
|
|
obfuscateCount: PropTypes.bool,
|
|
|
|
|
href: PropTypes.string,
|
|
|
|
|
ariaHidden: PropTypes.bool,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static defaultProps = {
|
|
|
|
@ -36,6 +37,7 @@ export default class IconButton extends React.PureComponent {
|
|
|
|
|
animate: false,
|
|
|
|
|
overlay: false,
|
|
|
|
|
tabIndex: '0',
|
|
|
|
|
ariaHidden: false,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
state = {
|
|
|
|
@ -102,6 +104,7 @@ export default class IconButton extends React.PureComponent {
|
|
|
|
|
counter,
|
|
|
|
|
obfuscateCount,
|
|
|
|
|
href,
|
|
|
|
|
ariaHidden,
|
|
|
|
|
} = this.props;
|
|
|
|
|
|
|
|
|
|
const {
|
|
|
|
@ -142,6 +145,7 @@ export default class IconButton extends React.PureComponent {
|
|
|
|
|
type='button'
|
|
|
|
|
aria-label={title}
|
|
|
|
|
aria-expanded={expanded}
|
|
|
|
|
aria-hidden={ariaHidden}
|
|
|
|
|
title={title}
|
|
|
|
|
className={classes}
|
|
|
|
|
onClick={this.handleClick}
|
|
|
|
|