Skip to content

Commit

Permalink
italics (#956)
Browse files Browse the repository at this point in the history
  • Loading branch information
SammySteiner authored Jan 3, 2024
1 parent e2c074b commit b6a4f32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
},
{
"title": "Agile",
"content": "We’re building a simpler Grants.gov with you, not for you. Our process gives us the flexibility to swiftly respond to feedback and adapt to changing priorities and requirements."
"content": "We’re building a simpler Grants.gov <italics>with you</italics>, not <italics>for you</italics>. Our process gives us the flexibility to swiftly respond to feedback and adapt to changing priorities and requirements."
}
]
},
Expand Down
8 changes: 6 additions & 2 deletions frontend/src/pages/content/ProcessIntro.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useTranslation } from "next-i18next";
import { Trans, useTranslation } from "next-i18next";
import { Grid } from "@trussworks/react-uswds";

import ContentLayout from "src/components/ContentLayout";
Expand Down Expand Up @@ -40,7 +40,11 @@ const ProcessIntro = () => {
<div className="border radius-md border-base-lighter padding-x-205">
<h3 className="tablet-lg:font-serif-lg">{box.title}</h3>
<p className="margin-top-0 font-sans-md line-height-sans-4 desktop-lg:line-height-sans-6">
{box.content}
<Trans
t={t}
i18nKey={box.content}
components={{ italics: <em /> }}
/>
</p>
</div>
</Grid>
Expand Down

0 comments on commit b6a4f32

Please sign in to comment.