Skip to content

Commit ee1d789

Browse files
committed
remove link style from header when it's not a link
1 parent 86c9c15 commit ee1d789

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

dotcom-rendering/src/components/ScrollableSmallOnwards.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ const Title = ({
146146
}) =>
147147
headingUrl ? (
148148
<a
149-
css={headerGridStyles}
150-
href={`${headingUrl}/inpictures/all`}
149+
css={[headerGridStyles, headerLinStyles]}
150+
href={headingUrl}
151151
data-link-name="section heading"
152152
>
153153
<h2 css={headerStyles}>{title}</h2>
@@ -169,14 +169,17 @@ const headerGridStyles = css`
169169
}
170170
`;
171171

172+
const headerLinStyles = css`
173+
:hover {
174+
text-decoration: underline;
175+
}
176+
`;
177+
172178
const headerStyles = css`
173179
color: ${palette('--onward-text')};
174180
${textSansBold17};
175181
padding-bottom: ${space[3]}px;
176182
padding-top: ${space[1]}px;
177-
:hover {
178-
text-decoration: underline;
179-
}
180183
${from.tablet} {
181184
${textSansBold20};
182185
}

0 commit comments

Comments
 (0)