mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
[Glitch] Disable the underlying button element when an ItemButton is disabled
Port b3668a79eca2d185ea57a9ffc2fa012db52e49f0 to glitch-soc
This commit is contained in:
parent
cf4fd8bcfe
commit
6e295beab2
@ -107,6 +107,7 @@ export default class IconButton extends React.PureComponent {
|
||||
onClick={this.handleClick}
|
||||
style={style}
|
||||
tabIndex={tabIndex}
|
||||
disabled={disabled}
|
||||
>
|
||||
<i className={`fa fa-fw fa-${icon}`} aria-hidden='true' />
|
||||
</button>
|
||||
@ -125,6 +126,7 @@ export default class IconButton extends React.PureComponent {
|
||||
onClick={this.handleClick}
|
||||
style={style}
|
||||
tabIndex={tabIndex}
|
||||
disabled={disabled}
|
||||
>
|
||||
<i style={{ transform: `rotate(${rotate}deg)` }} className={`fa fa-fw fa-${icon}`} aria-hidden='true' />
|
||||
{this.props.label}
|
||||
|
Loading…
x
Reference in New Issue
Block a user