slight Dark Mode fixes for WeaponModal

This commit is contained in:
Justin Edmund 2022-12-06 19:48:07 -08:00
parent 8ccdcdf5b4
commit 46034e6aad
4 changed files with 4 additions and 14 deletions

View file

@ -30,15 +30,6 @@
color: $grey-70; color: $grey-70;
cursor: not-allowed; cursor: not-allowed;
} }
&:not(.btn-disabled) {
background: $grey-90;
color: $grey-50;
&:hover {
background: $grey-80;
}
}
} }
} }
} }

View file

@ -247,9 +247,8 @@ const WeaponModal = (props: Props) => {
<Button <Button
onClick={updateWeapon} onClick={updateWeapon}
disabled={props.gridWeapon.object.ax > 0 && !formValid} disabled={props.gridWeapon.object.ax > 0 && !formValid}
> text={t('modals.weapon.buttons.confirm')}
{t('modals.weapon.buttons.confirm')} />
</Button>
</div> </div>
</Dialog.Content> </Dialog.Content>
<Dialog.Overlay className="Overlay" /> <Dialog.Overlay className="Overlay" />

View file

@ -76,7 +76,6 @@
} }
.Button { .Button {
background: $grey-100;
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.14); box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.14);
display: none; display: none;
position: absolute; position: absolute;

View file

@ -13,6 +13,7 @@ import { ButtonType } from '~utils/enums'
import type { SearchableObject } from '~types' import type { SearchableObject } from '~types'
import PlusIcon from '~public/icons/Add.svg' import PlusIcon from '~public/icons/Add.svg'
import SettingsIcon from '~public/icons/Settings.svg'
import './index.scss' import './index.scss'
interface Props { interface Props {
@ -113,7 +114,7 @@ const WeaponUnit = (props: Props) => {
{props.editable && gridWeapon && canBeModified(gridWeapon) ? ( {props.editable && gridWeapon && canBeModified(gridWeapon) ? (
<WeaponModal gridWeapon={gridWeapon}> <WeaponModal gridWeapon={gridWeapon}>
<div> <div>
<Button icon="settings" type={ButtonType.IconOnly} /> <Button accessoryIcon={<SettingsIcon />} />
</div> </div>
</WeaponModal> </WeaponModal>
) : ( ) : (