Skip to content

Commit

Permalink
fix: set white-space pre-line to preserve newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed Apr 19, 2024
1 parent 5fb9311 commit 9859252
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/AboutAOUnit/AboutAOUnit.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ const AboutAOUnit = forwardRef(({ type, id, renderId }, ref) => {
<div className="content">
<p
className={cx('detailLine', {
description: true,
noDescription: !data.ao.displayDescription,
})}
>
Expand Down
4 changes: 4 additions & 0 deletions src/components/AboutAOUnit/styles/AboutAOUnit.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ export default css`
flex-shrink: 0;
}
.description {
white-space: pre-line;
}
.noDescription {
color: ${colors.grey600};
}
Expand Down

0 comments on commit 9859252

Please sign in to comment.