buton hover bg and text

This commit is contained in:
Gala
2022-07-18 17:53:28 +02:00
parent 47f7a5f795
commit 8cd155b2ac
2 changed files with 19 additions and 2 deletions
@@ -6,7 +6,15 @@ import { AccountAvatar } from './AccountAvatar';
export const AccountOverview = ({ account, onClick }: { account: AccountEntry; onClick: () => void }) => (
<Button
startIcon={<AccountAvatar name={account.id} />}
sx={{ color: 'text.primary' }}
sx={{
color: 'text.primary',
'&:hover': (t) =>
t.palette.mode === 'dark'
? {
backgroundColor: 'rgba(255, 255, 255, 0.08)',
}
: {},
}}
onClick={onClick}
disableRipple
>
+10 -1
View File
@@ -40,7 +40,16 @@ export const NetworkSelector = () => {
<Button
variant="text"
color="primary"
sx={{ color: 'text.primary' }}
sx={{
color: 'text.primary',
fontSize: 14,
'&:hover': (t) =>
t.palette.mode === 'dark'
? {
backgroundColor: 'rgba(255, 255, 255, 0.08)',
}
: {},
}}
onClick={handleClick}
disableElevation
endIcon={<ArrowDropDown sx={{ color: (theme) => `1px solid ${theme.palette.text.primary}` }} />}