diff --git a/components/organisms/article_list/index.tsx b/components/organisms/article_list/index.tsx
index 323ae995..b2e154fa 100644
--- a/components/organisms/article_list/index.tsx
+++ b/components/organisms/article_list/index.tsx
@@ -14,9 +14,9 @@ const Time = ({ dateString, className }: { dateString: string, className?: strin
)
}
@@ -34,6 +34,7 @@ const ArticleList = ({
}
const StyledTime = Styled.Time(Time)
+ const StyledItemLink = Styled.ItemLink(Styled.Month, Styled.Date, Styled.Title)
return (
@@ -47,10 +48,10 @@ const ArticleList = ({
)}
-
+
- {title}
-
+ {title}
+
diff --git a/components/organisms/article_list/styled.ts b/components/organisms/article_list/styled.ts
index feeecd51..947dbcfc 100644
--- a/components/organisms/article_list/styled.ts
+++ b/components/organisms/article_list/styled.ts
@@ -40,7 +40,7 @@ export const Year = styled.span`
export const Dot = Year
// FIXME: `Warning: Prop `className` did not match. Server: "styled__Time-sc-5t8qkb-4 ennoTY" Client: "styled-sc-5t8qkb-4 gbbMlh"`
-export const Time = (rc) => styled(rc)`
+export const Time = (Time) => styled(Time)`
background-color: #fff;
display: block;
float: left;
@@ -87,7 +87,7 @@ export const Date = styled(_ItemLineMonthAndDate)`
background-color: rgba(var(--b-rgb-base), 0.38);
`
-export const ItemLink = styled.a`
+export const ItemLink = (Month, Date, Title) => styled.a`
${Styles.mixins.linkColors(
'#fff',
`rgba(var(--b-rgb-base), ${Styles.funcs.fibo('sm', 'alpha')})`,
@@ -102,21 +102,15 @@ export const ItemLink = styled.a`
width: 100%;
&:hover {
- /* FIXME: nested selector */
- /* ${Month} { */
- .sc-month {
+ ${Month} {
background-color: rgba(var(--b-rgb-base), 0.26);
}
- /* FIXME: nested selector */
- /* ${Date} { */
- .sc-date {
+ ${Date} {
background-color: rgba(var(--b-rgb-base), 0.3);
}
- /* FIXME: nested selector */
- /* ${Title} { */
- .sc-title {
+ ${Title} {
background-color: rgba(var(--b-rgb-base), 0.34);
}
}