Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/hw-footer' into hw-footer-medium
Browse files Browse the repository at this point in the history
  • Loading branch information
haworku committed May 5, 2020
2 parents 3e6dd78 + 4907181 commit 6809831
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const Footer = ({
)

return (
<footer className={classes}>
<footer {...footerAttributes} className={classes}>
{returnToTop && returnToTop}
<div className="usa-footer__primary-section">{primary}</div>

Expand Down
13 changes: 5 additions & 8 deletions src/components/Footer/Logo/Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,18 @@ export const Logo = ({
},
elementAttributes.className
)

const columnClasses = classnames({
'mobile-lg:grid-col-auto': big || medium,
'grid-col-auto': slim,
})

return (
<div className={containerClasses} data-testid="footerLogo">
{heading ? (
<>
<div className={columnClasses}>{image}</div>
<div className={columnClasses}>{heading}</div>
</>
) : (
<>{image}</>
)}
<>
<div className={columnClasses}>{image}</div>
{heading && <div className={columnClasses}>{heading}</div>}
</>
</div>
)
}

0 comments on commit 6809831

Please sign in to comment.