diff --git a/src/App/__snapshots__/App.test.tsx.snap b/src/App/__snapshots__/App.test.tsx.snap
index b76b1c4..cc240d3 100644
--- a/src/App/__snapshots__/App.test.tsx.snap
+++ b/src/App/__snapshots__/App.test.tsx.snap
@@ -7,6 +7,7 @@ exports[` should display the Header component 1`] = `
.emotion-24 {
background-color: #4b5e40;
+ color: #fff;
min-height: 60px;
display: -webkit-box;
display: -webkit-flex;
@@ -731,6 +732,7 @@ exports[` should display the Loading component at the beginning 1`] = `
.emotion-24 {
background-color: #4b5e40;
+ color: #fff;
min-height: 60px;
display: -webkit-box;
display: -webkit-flex;
diff --git a/src/components/ActionBar/ActionBarAction.tsx b/src/components/ActionBar/ActionBarAction.tsx
index 6f46b63..b441b37 100644
--- a/src/components/ActionBar/ActionBarAction.tsx
+++ b/src/components/ActionBar/ActionBarAction.tsx
@@ -12,10 +12,14 @@ import { Theme } from '../../design-tokens/theme';
import downloadTarball from './download-tarball';
-export const Fab = styled(FloatingActionButton)<{ theme?: Theme }>(props => ({
- backgroundColor: props.theme && props.theme.palette.primary.main,
- color: props.theme && props.theme.palette.white,
+export const Fab = styled(FloatingActionButton)<{ theme?: Theme }>(({ theme }) => ({
+ backgroundColor: theme?.palette.type === 'light' ? theme?.palette.primary.main : theme?.palette.cyanBlue,
+ color: theme?.palette.white,
marginRight: 10,
+ ':hover': {
+ color: theme?.palette.type === 'light' ? theme?.palette.primary.main : theme?.palette.cyanBlue,
+ background: theme?.palette.white,
+ },
}));
type ActionType = 'VISIT_HOMEPAGE' | 'OPEN_AN_ISSUE' | 'DOWNLOAD_TARBALL';
diff --git a/src/components/ActionBar/__snapshots__/ActionBar.test.tsx.snap b/src/components/ActionBar/__snapshots__/ActionBar.test.tsx.snap
index d840e10..ba2e2c2 100644
--- a/src/components/ActionBar/__snapshots__/ActionBar.test.tsx.snap
+++ b/src/components/ActionBar/__snapshots__/ActionBar.test.tsx.snap
@@ -7,6 +7,11 @@ exports[` component should render the component in default state 1`
margin-right: 10px;
}
+.emotion-0:hover {
+ color: #4b5e40;
+ background: #fff;
+}
+
diff --git a/src/components/DetailSidebar/DetailSidebarFundButton.tsx b/src/components/DetailSidebar/DetailSidebarFundButton.tsx
index fb1e87f..2c32ed8 100644
--- a/src/components/DetailSidebar/DetailSidebarFundButton.tsx
+++ b/src/components/DetailSidebar/DetailSidebarFundButton.tsx
@@ -9,21 +9,6 @@ import { isURL } from '../../utils/url';
import { Theme } from '../../design-tokens/theme';
import { DetailContext } from '../../pages/Version';
-const StyledLink = styled(Link)<{ theme?: Theme }>(({ theme }) => ({
- marginTop: theme && theme.spacing(1),
- marginBottom: theme && theme.spacing(1),
- textDecoration: 'none',
- display: 'block',
-}));
-
-const StyledFavoriteIcon = styled(Favorite)<{ theme?: Theme }>(({ theme }) => ({
- color: theme && theme.palette.orange,
-}));
-
-const StyledFundStrong = styled('strong')({
- marginRight: 3,
-});
-
/* eslint-disable react/jsx-no-bind */
const DetailSidebarFundButton: React.FC = () => {
const detailContext = useContext(DetailContext);
@@ -46,3 +31,18 @@ const DetailSidebarFundButton: React.FC = () => {
};
export default DetailSidebarFundButton;
+
+const StyledLink = styled(Link)<{ theme?: Theme }>(({ theme }) => ({
+ marginTop: theme?.spacing(1),
+ marginBottom: theme?.spacing(1),
+ textDecoration: 'none',
+ display: 'block',
+}));
+
+const StyledFavoriteIcon = styled(Favorite)<{ theme?: Theme }>(({ theme }) => ({
+ color: theme?.palette.orange,
+}));
+
+const StyledFundStrong = styled('strong')({
+ marginRight: 3,
+});
diff --git a/src/components/Footer/styles.ts b/src/components/Footer/styles.ts
index 13c956f..3ea4570 100644
--- a/src/components/Footer/styles.ts
+++ b/src/components/Footer/styles.ts
@@ -4,7 +4,7 @@ import Icon from '../Icon/Icon';
import { Theme } from '../../design-tokens/theme';
export const Wrapper = styled('div')<{ theme?: Theme }>(({ theme }) => ({
- background: theme?.palette.type === 'dark' ? theme?.palette.primary.main : theme?.palette.snow,
+ background: theme?.palette.type === 'light' ? theme?.palette.snow : theme?.palette.cyanBlue,
borderTop: `1px solid ${theme?.palette.greyGainsboro}`,
color: theme?.palette.type === 'dark' ? theme?.palette.white : theme?.palette.nobel01,
fontSize: '14px',
@@ -16,13 +16,13 @@ export const Inner = styled('div')<{ theme?: Theme }>(({ theme }) => ({
alignItems: 'center',
justifyContent: 'flex-end',
width: '100%',
- [`@media (min-width: ${theme && theme.breakPoints.medium}px)`]: {
+ [`@media (min-width: ${theme?.breakPoints.medium}px)`]: {
minWidth: 400,
maxWidth: 800,
margin: 'auto',
justifyContent: 'space-between',
},
- [`@media (min-width: ${theme && theme.breakPoints.large}px)`]: {
+ [`@media (min-width: ${theme?.breakPoints.large}px)`]: {
maxWidth: 1240,
},
}));
@@ -30,7 +30,7 @@ export const Inner = styled('div')<{ theme?: Theme }>(({ theme }) => ({
export const Left = styled('div')<{ theme?: Theme }>(({ theme }) => ({
alignItems: 'center',
display: 'none',
- [`@media (min-width: ${theme && theme.breakPoints.medium}px)`]: {
+ [`@media (min-width: ${theme?.breakPoints.medium}px)`]: {
display: 'flex',
},
}));
@@ -43,9 +43,9 @@ export const Earth = styled(Icon)({
padding: '0 10px',
});
-export const Flags = styled('span')<{ theme?: Theme }>(props => ({
+export const Flags = styled('span')<{ theme?: Theme }>(({ theme }) => ({
position: 'absolute',
- background: props.theme && props.theme.palette.greyAthens,
+ background: theme?.palette.greyAthens,
padding: '1px 4px',
borderRadius: 3,
height: 20,
@@ -60,7 +60,7 @@ export const Flags = styled('span')<{ theme?: Theme }>(props => ({
left: -4,
marginLeft: -5,
border: '5px solid',
- borderColor: `${props.theme && props.theme.palette.greyAthens} transparent transparent transparent`,
+ borderColor: `${theme?.palette.greyAthens} transparent transparent transparent`,
transform: 'rotate(90deg)',
},
}));
@@ -75,8 +75,8 @@ export const ToolTip = styled('span')({
},
});
-export const Love = styled('span')<{ theme?: Theme }>(props => ({
- color: props.theme && props.theme.palette.love,
+export const Love = styled('span')<{ theme?: Theme }>(({ theme }) => ({
+ color: theme?.palette.love,
padding: '0 5px',
}));
diff --git a/src/components/Header/HeaderMenu.tsx b/src/components/Header/HeaderMenu.tsx
index 7d1d190..a78b9e5 100644
--- a/src/components/Header/HeaderMenu.tsx
+++ b/src/components/Header/HeaderMenu.tsx
@@ -47,7 +47,7 @@ const HeaderMenu: React.FC
= ({
vertical: 'top',
horizontal: 'right',
}}>
-