Skip to content

Commit

Permalink
Keep non advertising partner styles untouched for storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
deedeeh committed May 21, 2024
1 parent 7656f98 commit 1157aaa
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions dotcom-rendering/src/components/Branding.importable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const liveBlogLabelStyle = css`
`;

const brandingLogoAdvertisingPartnerStyle = css`
padding: 0;
& img {
display: block;
${between.leftCol.and.wide} {
Expand All @@ -74,18 +75,22 @@ const brandingLogoAdvertisingPartnerStyle = css`
`;

const brandingLogoStyle = css`
padding: 10px 0;
display: block;
& img {
display: block;
}
`;

const aboutLinkAdvertisingPartnerStyle = css`
padding-top: 1px;
`;

const aboutLinkStyle = css`
${textSans12}
display: block;
text-decoration: none;
padding-top: 1px;
color: ${palette('--branding-link-text')};
a {
Expand Down Expand Up @@ -261,7 +266,13 @@ export const Branding = ({ branding, format }: Props) => {

<a
href={branding.aboutThisLink}
css={[aboutLinkStyle, isLiveBlog && liveBlogAboutLinkStyle]}
css={[
aboutLinkStyle,
isAdvertisingPartnerOrExclusive &&
inAdvertisingPartnerABTest &&
aboutLinkAdvertisingPartnerStyle,
isLiveBlog && liveBlogAboutLinkStyle,
]}
>
About this content
</a>
Expand Down

0 comments on commit 1157aaa

Please sign in to comment.