From 651b87529a03dc9fcaa41e56e8d4d87af2fea3ef Mon Sep 17 00:00:00 2001 From: Laurel Date: Mon, 20 Jan 2025 15:26:49 -0800 Subject: [PATCH] fix: make sure custom colours don't override newsletter modern style (#2427) --- newspack-theme/sass/blocks/_blocks.scss | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/newspack-theme/sass/blocks/_blocks.scss b/newspack-theme/sass/blocks/_blocks.scss index c829b6a59..631bf612d 100755 --- a/newspack-theme/sass/blocks/_blocks.scss +++ b/newspack-theme/sass/blocks/_blocks.scss @@ -359,6 +359,17 @@ p.has-background { } } +//! Newspack Newlsetter Subscription Block +.wp-block-newspack-newsletters-subscribe { + // Make sure custom colors don't override the color that should be used for the modern style. + &.is-style-modern input[type="checkbox"]::before { + background: + transparent + url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath d='M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z' fill='white' %3E%3C/path%3E%3C/svg%3E") + 0 0 no-repeat; + } +} + //! Columns .wp-block-columns { .wp-block-cover,