Skip to content

Commit 43b9e0c

Browse files
committed
feat: update light banner style
1 parent e559cc4 commit 43b9e0c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/content-gate/content-banner.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,25 @@ body.newspack-has-countdown-banner .site {
9090
}
9191
}
9292

93+
&__message {
94+
color: var(--newspack-content-banner-message-color, inherit);
95+
}
96+
9397
.newspack-ui__button {
9498
width: 100%;
9599

96100
@include mixins.media( mobile ) {
97101
width: auto;
98102
}
99103
}
104+
105+
strong {
106+
font-weight: 600;
107+
}
100108
}
101109

102110
&.is-style-light {
111+
--newspack-content-banner-message-color: var(--newspack-ui-color-neutral-60);
103112
background: var(--newspack-ui-color-neutral-0);
104113
color: var(--newspack-ui-color-neutral-90);
105114
}
@@ -112,6 +121,7 @@ body.newspack-has-countdown-banner .site {
112121
.newspack-wizard & {
113122
box-shadow: none;
114123
position: relative;
124+
z-index: 0;
115125

116126
&-preview {
117127
border: 1px solid var(--wp-components-color-gray-600, #{wp-colors.$gray-600});

src/wizards/audience/views/setup/countdown-banner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ export default function CountdownBanner( { config, setConfig, updateConfig } ) {
8383
<span className="newspack-countdown-banner__cta__content__countdown newspack-ui__font--s">
8484
<strong>{ __( '1/10 free articles this month', 'newspack-plugin' ) }</strong>
8585
</span>
86-
<span className="newspack-countdown-banner__cta__content__message newspack-ui__font--s">
86+
<span className="newspack-countdown-banner__cta__content__message newspack-ui__font--xs">
8787
{ config.countdown_banner.cta_label ||
8888
__( 'Subscribe now and get unlimited access.', 'newspack-plugin' ) }{ ' ' }
89-
<a href="#signin_modal">{ __( 'Sign in to an existing account', 'newspack-plugin' ) }</a>
89+
<a href="#signin_modal">{ __( 'Sign in to an existing account', 'newspack-plugin' ) }</a>.
9090
</span>
9191
</div>
9292
<button

0 commit comments

Comments
 (0)