Skip to content

Commit

Permalink
fix: PoweredBy hover color
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Jun 27, 2022
1 parent 92eb8fa commit e6b75d1
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/widget/src/components/Header/Header.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const HeaderAppBar = styled(AppBar)(({ theme }) => ({
position: 'relative',
minHeight: 48,
padding: theme.spacing(0, 3, 0, 3),
'&:first-of-type': {
':first-of-type': {
paddingTop: theme.spacing(1.5),
},
}));
Expand Down
2 changes: 1 addition & 1 deletion packages/widget/src/components/LiFiLogo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ export const LiFiLogo: React.FC<{
style?: CSSProperties;
}> = ({ variant = 'icon', style }) => {
const Component = variant === 'icon' ? LiFiIconLogo : LiFiFullLogo;
return <Component style={style} fill="currentColor" />;
return <Component style={style} fill="currentColor" color="currentColor" />;
};
10 changes: 10 additions & 0 deletions packages/widget/src/components/PoweredBy/PoweredBy.style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Link as MuiLink } from '@mui/material';
import { styled } from '@mui/material/styles';

export const Link = styled(MuiLink)(({ theme }) => ({
display: 'flex',
alignItems: 'center',
':hover': {
color: theme.palette.primary.main,
},
}));
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Box, Link, Typography } from '@mui/material';
import { LiFiLogo } from './LiFiLogo';
import { Box, Typography } from '@mui/material';
import { LiFiLogo } from '../LiFiLogo';
import { Link } from './PoweredBy.style';

export const PoweredBy: React.FC = () => {
return (
Expand All @@ -15,10 +16,6 @@ export const PoweredBy: React.FC = () => {
}}
>
<Link
sx={{
display: 'flex',
alignItems: 'center',
}}
href="https://li.fi"
target="_blank"
underline="none"
Expand Down
1 change: 1 addition & 0 deletions packages/widget/src/components/PoweredBy/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { PoweredBy } from './PoweredBy';

0 comments on commit e6b75d1

Please sign in to comment.