Rely on disabled property for disabled styles
This commit is contained in:
parent
d02a3e0861
commit
3a81675737
2 changed files with 1 additions and 2 deletions
|
|
@ -60,7 +60,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.Disabled {
|
&:disabled {
|
||||||
background-color: var(--button-bg-disabled);
|
background-color: var(--button-bg-disabled);
|
||||||
color: var(--button-text-disabled);
|
color: var(--button-text-disabled);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -289,7 +289,6 @@ const WeaponModal = (props: Props) => {
|
||||||
{props.gridWeapon.object.ax > 0 ? axSelect() : ''}
|
{props.gridWeapon.object.ax > 0 ? axSelect() : ''}
|
||||||
{props.gridWeapon.awakening ? awakeningSelect() : ''}
|
{props.gridWeapon.awakening ? awakeningSelect() : ''}
|
||||||
<Button
|
<Button
|
||||||
className={!formValid ? 'Disabled' : ''}
|
|
||||||
contained={true}
|
contained={true}
|
||||||
onClick={updateWeapon}
|
onClick={updateWeapon}
|
||||||
disabled={!formValid}
|
disabled={!formValid}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue