Skip to content

Commit beb1faa

Browse files
authored
Merge pull request #2488 from Automattic/alpha
Release Jun 05
2 parents d303056 + d1255c9 commit beb1faa

File tree

52 files changed

+1232
-602
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1232
-602
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# [1.116.0-alpha.3](https://github.com/Automattic/newspack-plugin/compare/v1.116.0-alpha.2...v1.116.0-alpha.3) (2023-05-29)
2+
3+
4+
### Features
5+
6+
* **content-gate:** updated block patterns ([#2474](https://github.com/Automattic/newspack-plugin/issues/2474)) ([161f935](https://github.com/Automattic/newspack-plugin/commit/161f935368be4305dba28631fd9142c3c84f6758))
7+
8+
# [1.116.0-alpha.2](https://github.com/Automattic/newspack-plugin/compare/v1.116.0-alpha.1...v1.116.0-alpha.2) (2023-05-26)
9+
10+
11+
### Bug Fixes
12+
13+
* **performance:** exclude main jetpack css from delay ([4e7aa5e](https://github.com/Automattic/newspack-plugin/commit/4e7aa5e8a076bb37d5378a007c83c5f26c22f7e9))
14+
115
## [1.115.1](https://github.com/Automattic/newspack-plugin/compare/v1.115.0...v1.115.1) (2023-05-26)
216

317

assets/components/src/action-card/style.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,10 @@
209209
border-left-width: 1px;
210210
border-bottom-width: 1px;
211211
border-radius: 0 0 0 2px;
212-
bottom: 50%;
213212
content: '';
214213
display: block;
215-
left: -28px;
216214
position: absolute;
217-
right: 100%;
218-
top: -17px;
215+
inset: -17px 100% 50% -28px;
219216
}
220217
}
221218

assets/components/src/autocomplete-with-suggestions/style.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656

5757
.newspack-autocomplete-tokenfield__help {
5858
font-size: inherit;
59+
margin-bottom: 8px !important;
5960
}
6061

6162
.components-form-token-field {

assets/components/src/handoff-message/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,16 @@ export default function HandoffMessage() {
2323
} else {
2424
setHandoffMessage( false );
2525
}
26+
27+
// Clean up the notification if navigating away from the relevant page.
28+
if ( handoff?.url && -1 === window.location.href.indexOf( handoff.url ) ) {
29+
window.localStorage.removeItem( HANDOFF_KEY );
30+
setHandoffMessage( false );
31+
}
2632
}, 100 );
33+
34+
// Clean up the notification when unmounting.
35+
return () => window.localStorage.removeItem( HANDOFF_KEY );
2736
}, [] );
2837
if ( ! handoffMessage ) return null;
2938
return <Notice isHandoff isDismissible={ false } rawHTML noticeText={ handoffMessage } />;

assets/components/src/image-upload/style.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,9 @@
5151
&::after {
5252
border: 1px solid rgba( black, 0.54 );
5353
border-radius: 2px;
54-
bottom: 0;
5554
content: '';
56-
left: 0;
55+
inset: 0;
5756
position: absolute;
58-
right: 0;
59-
top: 0;
6057
z-index: 0;
6158
}
6259
button,

assets/components/src/style-card/style.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,13 @@
6262
&__actions {
6363
align-items: center;
6464
background: rgba( white, 0.9 );
65-
bottom: 0;
6665
display: flex;
6766
flex-direction: column;
6867
justify-content: center;
69-
left: 0;
68+
inset: 0;
7069
opacity: 0;
7170
padding: 16px;
7271
position: absolute;
73-
right: 0;
74-
top: 0;
7572
transition: opacity 125ms ease-in-out;
7673

7774
&:empty {

assets/components/src/with-wizard-screen/style.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,10 @@
110110
&::before {
111111
border: 2px solid white;
112112
border-radius: 2px;
113-
bottom: 5px;
114113
content: '';
115114
display: block;
116-
left: 6px;
115+
inset: 6px 6px 5px;
117116
position: absolute;
118-
right: 6px;
119-
top: 6px;
120117
}
121118
}
122119
}

assets/components/src/with-wizard/style.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,9 @@ svg {
7676

7777
.newspack-wizard__is-loading {
7878
background: white;
79-
bottom: 0;
8079
cursor: wait;
81-
left: 0;
80+
inset: 0;
8281
position: absolute;
83-
right: 0;
84-
top: 0;
8582

8683
> * {
8784
display: none !important;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import './block-patterns.scss';
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
.editor-styles-wrapper .newspack-content-gate,
2+
.newspack-content-gate {
3+
/**
4+
* Apply RAS CTA color to outline button.
5+
*/
6+
.is-style-outline,
7+
.is-style-outline .wp-block-button__link:not( .has-text-color ) {
8+
color: #cc1818;
9+
border-color: #cc1818;
10+
}
11+
/**
12+
* Feature list.
13+
*/
14+
.newspack-feature-list {
15+
list-style: none;
16+
padding-left: 0;
17+
li {
18+
position: relative;
19+
padding-left: 24px;
20+
&::before {
21+
content: '';
22+
position: absolute;
23+
left: 0;
24+
top: 5px;
25+
width: 12px;
26+
height: 12px;
27+
background: url( "data:image/svg+xml;utf8,<?xml version='1.0' encoding='utf-8'?><svg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'><path d='M10.7 0.599976L4.39995 9.09998L1.09995 6.59998L0.199951 7.79998L4.69995 11.2L11.9 1.49998L10.7 0.599976Z'/></svg>" )
28+
no-repeat;
29+
background-position: center;
30+
}
31+
}
32+
}
33+
/**
34+
* Logged-out only content.
35+
*/
36+
.logged-in & {
37+
.newspack-sign-in {
38+
display: none;
39+
}
40+
}
41+
/**
42+
* Donate block tweaks.
43+
*/
44+
.wpbnbd--tiers-based {
45+
&.is-style-minimal form:not( [data-is-streamlined-form] ) {
46+
text-align: left;
47+
}
48+
&.is-style-minimal:not( .wpbnbd--platform-stripe ) button[type='submit'] {
49+
margin: 0;
50+
width: 100%;
51+
}
52+
.wpbnbd {
53+
&__tiers {
54+
&__options {
55+
background: rgb( 238, 238, 238 );
56+
margin: 0;
57+
padding: 10px;
58+
}
59+
&__tier {
60+
background: transparent;
61+
border: 0;
62+
position: relative;
63+
&:not( :last-child )::after {
64+
@media only screen and ( min-width: 782px ) {
65+
content: '';
66+
position: absolute;
67+
border-right: 1px solid #ccc;
68+
bottom: 19px;
69+
top: 19px;
70+
right: -10px;
71+
}
72+
}
73+
}
74+
}
75+
}
76+
}
77+
78+
/**
79+
* Reader Registration block.
80+
*/
81+
.newspack-registration {
82+
&__have-account {
83+
display: none;
84+
}
85+
.newspack-reader__lists {
86+
font-size: 16px;
87+
background: rgb( 238, 238, 238 );
88+
border: 0;
89+
padding-left: 1em;
90+
padding-right: 1em;
91+
}
92+
}
93+
}

0 commit comments

Comments
 (0)