Skip to content

Commit

Permalink
fix: removes govuk-body class from paragraphs and fixes list margins
Browse files Browse the repository at this point in the history
  • Loading branch information
gilaineyo committed Dec 6, 2024
1 parent c570b27 commit 1e627f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
8 changes: 3 additions & 5 deletions src/Dfe.PlanTech.Web.Node/styles/scss/overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@ a.govuk-home-link {
}

//Remove the padding from paragraphs within lists
li {
p.govuk-body {
margin-top: 0px;
margin-bottom: 0px;
}
li > p {
margin-top: 0px;
margin-bottom: 0px;
}

div.govuk-width-container {
Expand Down
5 changes: 1 addition & 4 deletions src/Dfe.PlanTech.Web/ProgramExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@ public static IServiceCollection AddContentfulServices(this IServiceCollection s
}});
});

services.AddScoped((_) => new ParagraphRendererOptions()
{
Classes = "govuk-body",
});
services.AddScoped((_) => new ParagraphRendererOptions());

services.AddScoped((_) => new HyperlinkRendererOptions()
{
Expand Down

0 comments on commit 1e627f7

Please sign in to comment.