From 5a0646dce0a6f6bc2b4cf5b0b3e70002d3869321 Mon Sep 17 00:00:00 2001 From: Daniel Miranda Date: Tue, 26 Oct 2021 17:12:40 -0700 Subject: [PATCH 1/2] updated cms to usse UL and updated css to format it correctly on front end --- .../networkapi/wagtailpages/pagemodels/products.py | 2 +- source/sass/buyers-guide/views/product.scss | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/network-api/networkapi/wagtailpages/pagemodels/products.py b/network-api/networkapi/wagtailpages/pagemodels/products.py index 7a66a136790..3867f116693 100644 --- a/network-api/networkapi/wagtailpages/pagemodels/products.py +++ b/network-api/networkapi/wagtailpages/pagemodels/products.py @@ -484,7 +484,7 @@ class ProductPage(AirtableMixin, FoundationMetadataPageMixin, Page): blank=True, ) tips_to_protect_yourself = RichTextField( - features=['bold', 'italic', 'link'], + features=['ul','bold', 'italic', 'link'], blank=True ) mozilla_says = models.BooleanField( diff --git a/source/sass/buyers-guide/views/product.scss b/source/sass/buyers-guide/views/product.scss index 4e2ee8315a0..f5f6a0e5dbc 100644 --- a/source/sass/buyers-guide/views/product.scss +++ b/source/sass/buyers-guide/views/product.scss @@ -224,12 +224,8 @@ } .rich-text { - p { - display: list-item; - list-style-type: disc; - list-style-position: inside; - padding-left: 0.5em; - margin-bottom: 0em; + ul { + padding-left: 1.5em; } } } From 6e49d53652fb340f74582273a876f29d95324902 Mon Sep 17 00:00:00 2001 From: Daniel Miranda Date: Tue, 26 Oct 2021 17:46:09 -0700 Subject: [PATCH 2/2] updated whitespace --- network-api/networkapi/wagtailpages/pagemodels/products.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network-api/networkapi/wagtailpages/pagemodels/products.py b/network-api/networkapi/wagtailpages/pagemodels/products.py index 3867f116693..5ea9cefdba7 100644 --- a/network-api/networkapi/wagtailpages/pagemodels/products.py +++ b/network-api/networkapi/wagtailpages/pagemodels/products.py @@ -484,7 +484,7 @@ class ProductPage(AirtableMixin, FoundationMetadataPageMixin, Page): blank=True, ) tips_to_protect_yourself = RichTextField( - features=['ul','bold', 'italic', 'link'], + features=['ul', 'bold', 'italic', 'link'], blank=True ) mozilla_says = models.BooleanField(