Skip to content

Commit

Permalink
fix headline wrong padding
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoskolodny committed Nov 11, 2024
1 parent 7862897 commit 2d9f5d7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@ export const Header = ({
<Box paddingRight={16}>
{/** using flex instead of nested Stacks, this way we can rearrange texts so the DOM structure makes more sense for screen reader users */}
<div className={styles.flexColumn}>
<div style={{paddingBottom: pretitle || title || description ? 8 : 0}}>
{headline}
</div>
{headline && (
<div style={{paddingBottom: pretitle || title || description ? 8 : 0}}>
{headline}
</div>
)}

{isBiggerHeading(titleAs, pretitleAs) ? (
<>
Expand Down

0 comments on commit 2d9f5d7

Please sign in to comment.