fixed save button

This commit is contained in:
muerwre 2019-02-19 11:22:40 +07:00
parent 6af37040d4
commit bbb628a24a
2 changed files with 6 additions and 3 deletions

View file

@ -100,7 +100,7 @@ class Component extends React.PureComponent<Props, void> {
</button> </button>
<button <button
className={classnames({ primary: changed, disabled: !changed })} className={classnames({ primary: changed, inactive: !changed })}
onClick={this.startSaveMode} onClick={this.startSaveMode}
> >
<span className="desktop-only">СОХРАНИТЬ</span> <span className="desktop-only">СОХРАНИТЬ</span>

View file

@ -93,15 +93,18 @@
} }
} }
&.disabled { &.disabled, &.inactive {
color: #999999; color: #999999;
pointer-events: none;
svg { svg {
fill: #999999; fill: #999999;
} }
} }
&.disabled {
pointer-events: none;
}
&.highlighted { &.highlighted {
background: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.1);
} }